AgentSet
Interface provides access to NetLogo agentsets. NetLogo agentsets may be composed of turtles, patches, or links (but an agentset may not contain a mix of different agent types.)
In order to perform some functions on AgentSets you may need to cast to org.nlogo.agent.AgentSet.
Attributes
- Source
- AgentSet.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Members list
Value members
Abstract methods
Returns an iterable that cn be used to iterate through the agents in this set.
Returns an iterable that cn be used to iterate through the agents in this set.
Attributes
- Source
- AgentSet.scala
Attributes
- Source
- AgentSet.scala
Returns the number of agents in the set.
Reports true if this AgentSet and the given AgentSet have the exact same agents
Reports true if this AgentSet and the given AgentSet have the exact same agents
Value parameters
- other
-
the AgentSet to compare to
Attributes
- Source
- AgentSet.scala
Reports true if this is the breed agentset for a directed link breed
Reports true if this is the breed agentset for a directed link breed
Attributes
- Source
- AgentSet.scala
Attributes
- Source
- AgentSet.scala
Reports true if this is the breed agentset for an undirected link breed
Reports true if this is the breed agentset for an undirected link breed
Attributes
- Source
- AgentSet.scala
Returns the type of agents in the AgentSet.
Returns the name of the AgentSet, for all turtles, patches, or links returns its type, for breeds returns the breed name for all other sets returns an empty string
Returns the name of the AgentSet, for all turtles, patches, or links returns its type, for breeds returns the breed name for all other sets returns an empty string
Attributes
- Source
- AgentSet.scala