MovableAgentResource

constructor(agentModel: AgentModel, space: ContinuousProjection<AgentLike>, initPosition: Point2D, name: String? = null, capacity: Int = Defaults.capacity, queue: RequestQ? = null)(source)

Parameters

agentModel

the enclosing AgentModel; required as AgentResource needs an AgentModel parent for its mailbox.

space

the projection that tracks this resource's position. Must hold AgentLike (or compatible) members.

initPosition

starting position in the projection.

name

optional name; defaults to MovableAgentResource_<id>.

capacity

initial resource capacity (default 1).

queue

optional shared request queue.