Movable Agent Resource
constructor(agentModel: AgentModel, space: ContinuousProjection<AgentLike>, initPosition: Point2D, name: String? = null, capacity: Int = Defaults.capacity, queue: RequestQ? = null)(source)
Parameters
agent Model
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.
init Position
starting position in the projection.
name
optional name; defaults to MovableAgentResource_<id>.
capacity
initial resource capacity (default 1).
queue
optional shared request queue.