Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event Target set operations (agent) #144

Open
curds01 opened this issue Jan 1, 2020 · 0 comments
Open

Event Target set operations (agent) #144

curds01 opened this issue Jan 1, 2020 · 0 comments
Assignees

Comments

@curds01
Copy link
Collaborator

curds01 commented Jan 1, 2020

The EventTarget defines a set of objects to serve as the target of an event result. Each target creates a
set. It would be good to be able to combine those with set operators (union, intersection, difference, and negation). This would require two things:

  1. The obvious introduction of new AgentEventTarget types implementing those operators.
  2. Upgrade of parsing in the EventSystem. Currently, the parsing assumes that all targets are immediate children of the <EventSystem> tag. The set operators will have nested target tags. The parsing needs to handle this and reconcile names.

More generally, the idea of defining a set of agents is more generally useful -- such as defining agent goals #142). The core functionality is the same -- given the world of agents, create a subset based on arbitrary criteria. That same functionality should be available to both events and other mechanisms without duplicating code. This more general idea probably requires its own issue.

@curds01 curds01 self-assigned this Jan 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant