AnyLogic
Expand
Font size
PackageDescription
com.anylogic.engine 
com.anylogic.engine.presentation 

Uses of AgentList in com.anylogic.engine

Modifier and TypeClassDescription
class AgentArrayList<E extends Agent>
Agent population list based on array implementation
Supports fast element retrieval by its index (the AgentArrayList.get(int) operation runs in constant time).
The add operation runs in amortized constant time, that is, adding n elements requires O(n) time.
class AgentLinkedHashSet<E extends Agent>
Agent population collection based on LinkedHashSet implementation
This collection offers constant time performance for the basic operations (add, remove, contains and size) and guarantees insertion-order during iteration

Note, that due to set-based implementation, element retrieval by its index (AgentLinkedHashSet.get(int)) is extremely slow when rapidly invoked it with random index for large collections.
Modifier and TypeMethodDescription
AgentList<Agent>Agent.getDefaultPopulation()
Returns the default population (contained in top-level agent) or null if root couldn't be found
AgentList<Agent>ExtRootModelAgent.getDefaultPopulation()
Returns 'default population' which e.g.
AgentList<?>Agent.getPopulation()
For agent population returns the List of agents embedded in the owner object where this agent belongs to, null if the object is not replicated
AgentList<?>Agent.getReplicatedCollection()
Deprecated.
This method may be removed in the next release.
AgentList<?>Agent.getReplicatedList()
For agent population returns the List of agents embedded in the owner object where this agent belongs to, null if the object is not replicated
Modifier and TypeMethodDescription
AgentAnimationSettingsAgent.getAnimationSettingsOf(AgentList<?> aocollection)
Returns the animation settings of a replicated embedded object.
Must be implemented in a subclass if there are any replicated embedded objects.
StringAgent.getNameOf(AgentList<?> aocollection)
Returns the name of a replicated embedded object.
Must be implemented in a subclass if there are any replicated embedded objects.
voidAgent.goToPopulation(AgentList newPopulation)
Changes the population of agent.
voidExtEnvironmentInteractive.register_xjal(AgentList<?> population)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
final voidAgent.restoreCollection_xjal(AgentList<?> collection)
Deprecated.
ModifierConstructorDescription
 Agent(Engine engine, Agent owner, AgentList<?> ownerPopulation)
Constructs the agent, sets up its owner and list (if replicated).
 FlowchartBlock(Engine engine, Agent owner, AgentList<?> collection)
Standard Agent constructor
  • Uses of AgentList in com.anylogic.engine.presentation

    Modifier and TypeMethodDescription
    AgentList<?>ShapeEmbeddedObjectIcon.getPopulation() 
    ModifierConstructorDescription
     ShapeAgentPopulationGroup(Agent presentable, ShapeDrawMode drawMode, boolean ispublic, AgentList<?> population) 
     ShapeEmbeddedObjectIcon(Agent agent, boolean ispublic, double x, double y, AgentList<?> population)
    Constructs an embedded object presentation with specific attributes