Package com.anylogic.engine
- Field Summary
- Constructor Summary
- Method Summary
- Methods inherited from class com.anylogic.engine.ExtAgentContinuousDelegate
- Methods inherited from class com.anylogic.engine.AgentExtensionImpl
- Methods inherited from class java.lang.Object
- Methods inherited from interface com.anylogic.engine.AgentExtension
- Methods inherited from interface com.anylogic.engine.ExtAgentWithSpatialMetrics
- Field Details
- Constructor Details
- Method Details
- destroyEntity
- highlight
- getId
- getFlowchartEntryTime
- addAgentToContents
- removeAgentFromContents
- getLength
- getLength
- setLength
- setLength
- getWidth
- getWidth
- setWidth
- setWidth
- getHeight
- getHeight
- setHeight
- setHeight
- contents
- resourceUnits
- resourceUnitsOfSeize
- resourceUnitsOfPool
- resourceUnitOfPool
- currentBlock
- getBlockEnterTime
- setColor
- getColor
- getDefaultAnimation
- createDefaultAnimation
- onClick
- priority
- setSpace
- stop
- moveTo
- getSpace
- getAnimationX
- getAnimationY
- getAnimationZ
- getAnimationPosition
- getPresentationScaleOnOwnerSpace
- moveTo
- moveToInTime
- isAnimationVisible_xjal
- moveToInTime
- moveToStraight
- moveToStraightInTime
- moveToStraightInTime
- moveTo
- moveToInTime
- moveToInTime
- moveToInTime
- moveToInTime
- jumpTo
- jumpTo
- jumpTo
- setArrivalCallback
- moveToNearestAgent
- moveToNearestAgent
- getNearestAgent
- agentsInRange
- agentsInRange
- setAutomaticHorizontalRotation
- isAutomaticHorizontalRotation
- getTargetX
- getTargetY
- distanceTo
- distanceTo
- distanceTo
- distanceTo
- distanceTo
- distanceTo
- isMoving
- setVelocity
- getVelocity
- setSpeed
- setSpeed
- getSpeed
- getSpeed
- timeToArrival
- timeToArrival
- updatePosition
- getNetwork
- setNetwork
- setNetworkInternal
- getNetworkNode
- setNetworkNode
- setNetworkNode
- getSpaceType
- setFlowchartActivityType
- java.lang.Object
- com.anylogic.engine.AgentExtensionImpl
- com.anylogic.engine.ExtAgentContinuousDelegate<ExtAgentContinuous>
- com.anylogic.engine.ExtEntityContinuousDelegate<E>
- Type Parameters:
E
- type of agent extension to delegate to. If you are creating new extension based on 'Entity', please set the type toExtEntity
- All Implemented Interfaces:
AgentExtension
,ExtAgentContinuous
,ExtAgentInteractive
,ExtAgentWithSpatialMetrics
,ExtAnimationParams
,ExtDefaultAnimationProvider
,ExtEntity
,ExtWithSpaceType
,Serializable
@Deprecated @AnyLogicInternalAPI public abstract class ExtEntityContinuousDelegate<E extends ExtEntity> extends ExtAgentContinuousDelegate<ExtAgentContinuous> implements ExtEntity
Deprecated.
Base class for extensions delegating their 'Entity' activity to an existing extension of agent
- See Also:
- Serialized Form
Modifier and Type | Field | Description |
---|---|---|
final ExtEntity | ee |
Deprecated.
|
Constructor | Description |
---|---|
ExtEntityContinuousDelegate |
Deprecated.
|
Modifier and Type | Method | Description |
---|---|---|
void | addAgentToContents |
Deprecated.
Adds a given agent to the contents of this agent.
|
<T extends Agent> | agentsInRange |
Deprecated.
Returns the unsorted list of agents from the given collection which are within the given
distance from this agent |
<T extends Agent> | agentsInRange |
Deprecated.
Returns the unsorted list of agents from the given collection which are within the given
distance from this agent |
List<Agent> | contents() |
Deprecated.
|
ShapeTopLevelPresentationGroup | createDefaultAnimation() |
Deprecated.
|
FlowchartBlock | currentBlock() |
Deprecated.
Returns the current flowchart block this agent
is being processed in.
|
void | destroyEntity() |
Deprecated.
Destroys the agent.
|
double | distanceTo |
Deprecated.
Calculates the distance from this agent to a given point in the
projection to the horizontal plane (i.e.
|
double | distanceTo |
Deprecated.
Calculates the distance from this agent to a given point in the
projection to the horizontal plane (i.e.
|
double | distanceTo |
Deprecated.
Calculates the distance from this agent to another one in continuous 3D space.
|
double | distanceTo |
Deprecated.
Calculates the distance from this agent to another one.
The exact behavior of this method depends on the underlying space type. |
double | distanceTo |
Deprecated.
Calculates the distance from this agent to the point.
The exact behavior of this method depends on the underlying space type. |
double | distanceTo |
Deprecated.
Calculates the distance from this agent to the point.
The exact behavior of this method depends on the underlying space type. |
Position | getAnimationPosition |
Deprecated.
|
double | getAnimationX() |
Deprecated.
|
double | getAnimationY() |
Deprecated.
|
double | getAnimationZ() |
Deprecated.
|
double | getBlockEnterTime() |
Deprecated.
Returns the time this agent entered its current flowchart block.
|
Color | getColor() |
Deprecated.
Returns the color of the item default shape.
|
ShapeTopLevelPresentationGroup | getDefaultAnimation() |
Deprecated.
|
double | getFlowchartEntryTime() |
Deprecated.
Returns the time the agent has entered the first block in the flowchart,
or
Double.NaN if this agent hasn't yet visited any flowchart |
double | getHeight() |
Deprecated.
Returns the height of the agent - used by conveyors and
other blocks which require it during processing.
|
double | getHeight |
Deprecated.
Returns the height of the agent - used by conveyors and
other blocks which require it during processing.
|
int | getId() |
Deprecated.
Returns Id of agent.
|
double | getLength() |
Deprecated.
Returns the length of the agent - used by conveyors and
other blocks which require it during processing.
|
double | getLength |
Deprecated.
Returns the length of the agent - used by conveyors and
other blocks which require it during processing.
|
<T extends Agent> | getNearestAgent |
Deprecated.
Returns the nearest agent from the given collection
|
INetwork | getNetwork() |
Deprecated.
Returns the network this agent lives in, actual for agents in continuous space.
|
INode | getNetworkNode() |
Deprecated.
Returns the network node this agent currently is located in, actual for agents in continuous space.
|
double | getPresentationScaleOnOwnerSpace() |
Deprecated.
Returns the scale of the agent presentation animation
on its space or
1.0 if space isn't defined
or agent list is empty |
Agent | getSpace() |
Deprecated.
Returns the agent representing space this agent lives in
|
SpaceType | getSpaceType() |
Deprecated.
Returns the type of space this agent lives in, one of
SPACE_CONTINUOUS, SPACE_DISCRETE, SPACE_GIS, SPACE_NONE |
double | getSpeed() |
Deprecated.
Returns the current value of the agent speed (measured in m/s).
|
double | getSpeed |
Deprecated.
Returns the current value of the agent speed in continuous space.
|
double | getTargetX() |
Deprecated.
Returns the x of the target location if moving, otherwise current x in
continuous space.
|
double | getTargetY() |
Deprecated.
Returns the y of the target location if moving, otherwise current y in
continuous space.
|
double | getVelocity() |
Deprecated.
Returns the current value of the agent speed in continuous space.
|
double | getWidth() |
Deprecated.
Returns the width of the agent - used by conveyors and
other blocks which require it during processing.
|
double | getWidth |
Deprecated.
Returns the width of the agent - used by conveyors and
other blocks which require it during processing.
|
void | highlight |
Deprecated.
Turns on/off highlighting of this agent animation.
|
boolean | isAnimationVisible_xjal() |
Deprecated.
|
boolean | isAutomaticHorizontalRotation() |
Deprecated.
Returns
true if agent is set to be rotated (in horizontal
plane) during movement, false otherwise |
boolean | isMoving() |
Deprecated.
Tests if the agent is currently moving.
|
void | jumpTo |
Deprecated.
Instantly moves the agent to a given location (without changes to Z-coordinate, if any).
|
void | jumpTo |
Deprecated.
Instantly moves the agent to a given network location.
|
void | jumpTo |
Deprecated.
Instantly moves the agent to a given location.
|
void | moveTo |
Deprecated.
Starts movement in the direction of the given target location.
|
void | moveTo |
Deprecated.
Starts movement to the given network node.
"On arrival" code is executed when movement is finished. |
void | moveTo |
Deprecated.
Starts movement in the direction of the given target location.
"On arrival" code is executed when movement is finished. |
void | moveToInTime |
Deprecated.
Starts movement in the direction of the given target location.
|
void | moveToInTime |
Deprecated.
Starts movement in the direction of the given target location.
|
void | moveToInTime |
Deprecated.
Starts movement to the given network node.
Changes the speed of the agent in order to reach target in tripTime
model time units."On arrival" code is executed when movement is finished. |
void | moveToInTime |
Deprecated.
Starts movement to the given network node.
Changes the speed of the agent in order to reach target in tripTime
model time units."On arrival" code is executed when movement is finished. |
void | moveToInTime |
Deprecated.
Starts movement in the direction of the given target location.
Changes the speed of the agent in order to reach target in tripTime
model time units."On arrival" code is executed when movement is finished. |
void | moveToInTime |
Deprecated.
Starts movement in the direction of the given target location.
Changes the speed of the agent in order to reach target in tripTime
model time units."On arrival" code is executed when movement is finished. |
void | moveToNearestAgent |
Deprecated.
Starts movement to the nearest agent from the given collection.
|
void | moveToNearestAgent |
Deprecated.
Starts movement to the nearest agent from the given collection.
|
void | moveToStraight |
Deprecated.
Starts straight movement in the direction of the given target location.
"On arrival" code is executed when movement is finished. |
void | moveToStraightInTime |
Deprecated.
Starts straight movement in the direction of the given target location.
Changes the speed of the agent in order to reach target in tripTime
model time units."On arrival" code is executed when movement is finished. |
void | moveToStraightInTime |
Deprecated.
Starts straight movement in the direction of the given target location.
Changes the speed of the agent in order to reach target in tripTime
model time units."On arrival" code is executed when movement is finished. |
boolean | onClick() |
Deprecated.
Should be overridden to define the reaction on mouse click.
|
int | priority() |
Deprecated.
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. This function is used for sorting extensions (in order for the overriding delegation to work) |
boolean | removeAgentFromContents |
Deprecated.
Removes the given agent from the contents of this agent.
|
Agent | resourceUnitOfPool |
Deprecated.
Returns the first occurrence of resource unit of a given pool
among the seized resource units, or
null if not found. |
List<Agent> | resourceUnits() |
Deprecated.
Returns the list of resource units seized by the agent, or empty list
if there are none.
|
List<Agent> | resourceUnitsOfPool |
Deprecated.
Returns resource units currently seized by this agent
from the given
ResourcePool block |
List<Agent> | resourceUnitsOfSeize |
Deprecated.
Return resource units currently seized by this agent
in the given
Seize block |
void | setArrivalCallback |
Deprecated.
This method is designed for advanced users and library developers,
for general purpose arrival processing please use "On arrival" action which
can be found on the properties of Agent Type.
Sets the listener which will be notified when the agent arrives (onArrival) or when the agent movement is cancelled or redirected (onCancel). |
void | setAutomaticHorizontalRotation |
Deprecated.
Tells agent to rotate automatically (in horizontal plane) during movements.
|
void | setColor |
Deprecated.
Sets the color of the item default shape.
|
void | setFlowchartActivityType |
Deprecated.
Sets activity type info (used in e.g.
|
void | setHeight |
Deprecated.
Sets the height of the agent (in meters)
|
void | setHeight |
Deprecated.
Sets the height of the agent in the given units
|
void | setLength |
Deprecated.
Sets the length of the agent (in meters)
|
void | setLength |
Deprecated.
Sets the length of the agent in the given units
|
void | setNetwork |
Deprecated.
Sets this agent to live in the network, actual for agents in continuous space.
|
void | setNetworkInternal |
Deprecated.
|
void | setNetworkNode |
Deprecated.
Sets the current network location for the agent
|
void | setNetworkNode |
Deprecated.
Sets the current network location for the agent
|
void | setSpace |
Deprecated.
Sets the space for agent.
|
void | setSpeed |
Deprecated.
Changes speed of the agent (measured in m/s).
If the agent is moving, it continues moving with the new speed. |
void | setSpeed |
Deprecated.
Changes speed of the agent in continuous space
(measured in the given units).
If the agent is moving, it continues moving with the new speed. |
void | setVelocity |
Deprecated.
Changes speed of the agent in continuous space
(measured in pixels per model-time-unit).
If the agent is moving, it continues moving with the new speed. |
void | setWidth |
Deprecated.
Sets the width of the agent (in meters)
|
void | setWidth |
Deprecated.
Sets the width of the agent in the given units
|
void | stop() |
Deprecated.
Stops movement, if any.
|
double | timeToArrival() |
Deprecated.
Returns the time to arrival to the target location in continuous space, in model-time units.
If the agent is not moving, returns 0. |
double | timeToArrival |
Deprecated.
Returns the time to arrival to the target location, in time units.
If the agent is not moving, returns 0. |
void | updatePosition() |
Deprecated.
Updates agent coordinates
|
addConnection_xjal, agentInfo, connectTo, copyToAndDestroyOnSpaceTypeChange_xjal, deliver, deliver, disconnectFrom, disconnectFromAll, distanceTo, distanceTo, distanceToSq, distanceToSq, distanceToSq, getConnectedAgent, getConnections, getConnectionsNumber, getEnvironment, getLevel, getRandomConnectedAgent, getRouteProvider, getTargetZ, isAutomaticVerticalRotation, isConnectedTo, jumpTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveToInTime, moveToInTime, moveToInTime, moveToInTime, moveToInTime, moveToInTime, moveToInTime, moveToInTime, moveToInTime, moveToInTime, moveToStraight, moveToStraightInTime, moveToStraightInTime, receive, removeConnection_xjal, restoreConnections_xjal, send, send, setAutomaticVerticalRotation, setEnvironment_xjal, setLevel, setNetworkNode, setRouteProvider
error, error, getAgent, getSupportedInterfaces_xjal, next_xjal, onDestroy, onExtensionRemoved, setNext_xjal, supportsInterface_xjal
public final ExtEntity ee
Deprecated.
@Deprecated public ExtEntityContinuousDelegate(Agent owner)
Deprecated.
@AnyLogicInternalAPI public void destroyEntity()
Deprecated.
Description copied from interface:
ExtEntity
Destroys the agent.
- Specified by:
destroyEntity
in interfaceExtEntity
public void highlight(boolean yes)
Deprecated.
Description copied from interface:
ExtEntity
Turns on/off highlighting of this agent animation.
The behavior of the function is specific for different agent types
and usually depends on the library which drives this agent
public int getId()
Deprecated.
Description copied from interface:
ExtEntity
Returns Id of agent. This method is designed only for debug purposes.
It doesn't guarantees that id is unique.
Note that when the model produces more than ~billion agents then there may be agents with negative and even equal ids.
Note that when the model produces more than ~billion agents then there may be agents with negative and even equal ids.
public double getFlowchartEntryTime()
Deprecated.
Description copied from interface:
ExtEntity
Returns the time the agent has entered the first block in the flowchart,
or
Double.NaN
if this agent hasn't yet visited any flowchart- Specified by:
getFlowchartEntryTime
in interfaceExtEntity
- Returns:
- time or
Double.NaN
public void addAgentToContents(Agent entity)
Deprecated.
Description copied from interface:
ExtEntity
Adds a given agent to the contents of this agent.
- Specified by:
addAgentToContents
in interfaceExtEntity
- Parameters:
entity
- the agent to add
public boolean removeAgentFromContents(Agent entity)
Deprecated.
Description copied from interface:
ExtEntity
Removes the given agent from the contents of this agent.
- Specified by:
removeAgentFromContents
in interfaceExtEntity
- Parameters:
entity
- the agent to remove- Returns:
- returns
true
ifagent
was removed,false
if this agent didn't contain the specifiedagent
public double getLength()
Deprecated.
Description copied from interface:
ExtEntity
Returns the length of the agent - used by conveyors and
other blocks which require it during processing.
public double getLength(LengthUnits units)
Deprecated.
Description copied from interface:
ExtEntity
Returns the length of the agent - used by conveyors and
other blocks which require it during processing.
public void setLength(double length)
Deprecated.
Description copied from interface:
ExtEntity
Sets the length of the agent (in meters)
public void setLength(double length, LengthUnits units)
Deprecated.
Description copied from interface:
ExtEntity
Sets the length of the agent in the given units
public double getWidth()
Deprecated.
Description copied from interface:
ExtEntity
Returns the width of the agent - used by conveyors and
other blocks which require it during processing.
public double getWidth(LengthUnits units)
Deprecated.
Description copied from interface:
ExtEntity
Returns the width of the agent - used by conveyors and
other blocks which require it during processing.
public void setWidth(double width)
Deprecated.
Description copied from interface:
ExtEntity
Sets the width of the agent (in meters)
public void setWidth(double width, LengthUnits units)
Deprecated.
Description copied from interface:
ExtEntity
Sets the width of the agent in the given units
public double getHeight()
Deprecated.
Description copied from interface:
ExtEntity
Returns the height of the agent - used by conveyors and
other blocks which require it during processing.
public double getHeight(LengthUnits units)
Deprecated.
Description copied from interface:
ExtEntity
Returns the height of the agent - used by conveyors and
other blocks which require it during processing.
public void setHeight(double height)
Deprecated.
Description copied from interface:
ExtEntity
Sets the height of the agent (in meters)
public void setHeight(double height, LengthUnits units)
Deprecated.
Description copied from interface:
ExtEntity
Sets the height of the agent in the given units
public List<Agent> contents()
Deprecated.
public List<Agent> resourceUnits()
Deprecated.
Description copied from interface:
ExtEntity
Returns the list of resource units seized by the agent, or empty list
if there are none.
- Specified by:
resourceUnits
in interfaceExtEntity
- Returns:
- the list of resource units seized by the agent, never returns
null
public List<Agent> resourceUnitsOfSeize(Agent seize)
Deprecated.
Description copied from interface:
ExtEntity
Return resource units currently seized by this agent
in the given
Seize
block- Specified by:
resourceUnitsOfSeize
in interfaceExtEntity
- Parameters:
seize
-Seize
block- Returns:
- resource units currently seized by this agent
public List<Agent> resourceUnitsOfPool(Agent pool)
Deprecated.
Description copied from interface:
ExtEntity
Returns resource units currently seized by this agent
from the given
ResourcePool
block- Specified by:
resourceUnitsOfPool
in interfaceExtEntity
- Parameters:
pool
-ResourcePool
block- Returns:
- resource units currently seized by this agent
public Agent resourceUnitOfPool(Agent pool)
Deprecated.
Description copied from interface:
ExtEntity
Returns the first occurrence of resource unit of a given pool
among the seized resource units, or
null
if not found.- Specified by:
resourceUnitOfPool
in interfaceExtEntity
- Parameters:
pool
- the pool of the unit (ResourcePool block)- Returns:
- the seized resource unit from the given pool, if found
public FlowchartBlock currentBlock()
Deprecated.
Description copied from interface:
ExtEntity
Returns the current flowchart block this agent
is being processed in. This method is designed for
agents which act as 'entities' in process flowchart diagrams.
- Specified by:
currentBlock
in interfaceExtEntity
- Returns:
- the current flowchart block containing this agent
or
null
if the agent isn't in flowchart
public double getBlockEnterTime()
Deprecated.
Description copied from interface:
ExtEntity
Returns the time this agent entered its current flowchart block.
- Specified by:
getBlockEnterTime
in interfaceExtEntity
- Returns:
- the time this agent entered its current flowchart block or
Double.NaN
if this agent isn't in the flowchart
public void setColor(Color color)
Deprecated.
Description copied from interface:
ExtEntity
Sets the color of the item default shape.
public Color getColor()
Deprecated.
Description copied from interface:
ExtEntity
Returns the color of the item default shape.
public ShapeTopLevelPresentationGroup getDefaultAnimation()
Deprecated.
- Specified by:
getDefaultAnimation
in interfaceExtDefaultAnimationProvider
@AnyLogicInternalAPI public ShapeTopLevelPresentationGroup createDefaultAnimation()
Deprecated.
- Specified by:
createDefaultAnimation
in interfaceExtDefaultAnimationProvider
@AnyLogicInternalAPI public boolean onClick()
Deprecated.
Description copied from interface:
ExtDefaultAnimationProvider
Should be overridden to define the reaction on mouse click.
- Specified by:
onClick
in interfaceExtDefaultAnimationProvider
- Returns:
- always return
false
here.
public int priority()
Deprecated.
Description copied from interface:
AgentExtension
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
This function is used for sorting extensions (in order for the overriding delegation to work)
it may be removed/renamed in future.
This function is used for sorting extensions (in order for the overriding delegation to work)
- Specified by:
priority
in interfaceAgentExtension
- Overrides:
priority
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Returns:
- int value, see also
P_*
constants
public void setSpace(Agent space)
Deprecated.
Description copied from interface:
ExtAnimationParams
Sets the space for agent. Shouldn't be called for moving agents.
Coordinates and rotations are left "as is"
- Specified by:
setSpace
in interfaceExtAnimationParams
- Overrides:
setSpace
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Parameters:
space
- the agent representing space this agent will live in
public void stop()
Deprecated.
Description copied from interface:
ExtAgentContinuous
Stops movement, if any.
- Specified by:
stop
in interfaceExtAgentContinuous
- Specified by:
stop
in interfaceExtAgentWithSpatialMetrics
- Overrides:
stop
in classExtAgentContinuousDelegate<ExtAgentContinuous>
public void moveTo(double x, double y)
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Starts movement in the direction of the given target location.
Z coordinate of target is the same as the current agent's Z coordinate.
"On arrival" code is executed when movement is finished.
"On arrival" code is executed when movement is finished.
- Specified by:
moveTo
in interfaceExtAgentWithSpatialMetrics
- Overrides:
moveTo
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Parameters:
x
- the x coordinate of the target locationy
- the y coordinate of the target location
public Agent getSpace()
Deprecated.
Description copied from interface:
ExtAnimationParams
Returns the agent representing space this agent lives in
- Specified by:
getSpace
in interfaceExtAnimationParams
- Overrides:
getSpace
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Returns:
- the agent representing space this agent lives in
public double getAnimationX()
Deprecated.
- Specified by:
getAnimationX
in interfaceExtAnimationParams
- Overrides:
getAnimationX
in classExtAgentContinuousDelegate<ExtAgentContinuous>
public double getAnimationY()
Deprecated.
- Specified by:
getAnimationY
in interfaceExtAnimationParams
- Overrides:
getAnimationY
in classExtAgentContinuousDelegate<ExtAgentContinuous>
public double getAnimationZ()
Deprecated.
- Specified by:
getAnimationZ
in interfaceExtAnimationParams
- Overrides:
getAnimationZ
in classExtAgentContinuousDelegate<ExtAgentContinuous>
public Position getAnimationPosition(Position out)
Deprecated.
- Specified by:
getAnimationPosition
in interfaceExtAnimationParams
- Overrides:
getAnimationPosition
in classExtAgentContinuousDelegate<ExtAgentContinuous>
public double getPresentationScaleOnOwnerSpace()
Deprecated.
Description copied from interface:
ExtAnimationParams
Returns the scale of the agent presentation animation
on its space or
1.0
if space isn't defined
or agent list is empty- Specified by:
getPresentationScaleOnOwnerSpace
in interfaceExtAnimationParams
- Overrides:
getPresentationScaleOnOwnerSpace
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Returns:
- the scale of presentation animation on owner space
public void moveTo(Point location)
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Starts movement in the direction of the given target location.
"On arrival" code is executed when movement is finished.
"On arrival" code is executed when movement is finished.
- Specified by:
moveTo
in interfaceExtAgentWithSpatialMetrics
- Overrides:
moveTo
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Parameters:
location
- the target location
public void moveToInTime(Point location, double tripTime)
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Starts movement in the direction of the given target location.
Changes the speed of the agent in order to reach target in
"On arrival" code is executed when movement is finished.
Changes the speed of the agent in order to reach target in
tripTime
model time units."On arrival" code is executed when movement is finished.
- Specified by:
moveToInTime
in interfaceExtAgentWithSpatialMetrics
- Overrides:
moveToInTime
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Parameters:
location
- the target locationtripTime
- the time of the movement trip
public boolean isAnimationVisible_xjal()
Deprecated.
- Specified by:
isAnimationVisible_xjal
in interfaceExtAnimationParams
- Overrides:
isAnimationVisible_xjal
in classExtAgentContinuousDelegate<ExtAgentContinuous>
public void moveToInTime(Point location, double tripTime, TimeUnits units)
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Starts movement in the direction of the given target location.
Changes the speed of the agent in order to reach target in
"On arrival" code is executed when movement is finished.
Changes the speed of the agent in order to reach target in
tripTime
model time units."On arrival" code is executed when movement is finished.
- Specified by:
moveToInTime
in interfaceExtAgentWithSpatialMetrics
- Overrides:
moveToInTime
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Parameters:
location
- the target locationtripTime
- the time of the movement tripunits
- the time units
public void moveToStraight(Point location)
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Starts straight movement in the direction of the given target location.
"On arrival" code is executed when movement is finished.
"On arrival" code is executed when movement is finished.
- Specified by:
moveToStraight
in interfaceExtAgentWithSpatialMetrics
- Overrides:
moveToStraight
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Parameters:
location
- the target location
public void moveToStraightInTime(Point location, double tripTime)
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Starts straight movement in the direction of the given target location.
Changes the speed of the agent in order to reach target in
"On arrival" code is executed when movement is finished.
Changes the speed of the agent in order to reach target in
tripTime
model time units."On arrival" code is executed when movement is finished.
- Specified by:
moveToStraightInTime
in interfaceExtAgentWithSpatialMetrics
- Overrides:
moveToStraightInTime
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Parameters:
location
- the target locationtripTime
- the time of the movement trip
public void moveToStraightInTime(Point location, double tripTime, TimeUnits units)
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Starts straight movement in the direction of the given target location.
Changes the speed of the agent in order to reach target in
"On arrival" code is executed when movement is finished.
Changes the speed of the agent in order to reach target in
tripTime
model time units."On arrival" code is executed when movement is finished.
- Specified by:
moveToStraightInTime
in interfaceExtAgentWithSpatialMetrics
- Overrides:
moveToStraightInTime
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Parameters:
location
- the target locationtripTime
- the time of the movement tripunits
- the time units
public void moveTo(INode node, Point location)
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Starts movement to the given network node.
"On arrival" code is executed when movement is finished.
"On arrival" code is executed when movement is finished.
- Specified by:
moveTo
in interfaceExtAgentWithSpatialMetrics
- Overrides:
moveTo
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Parameters:
node
- the network node.location
- (optional) location within node, may benull
public void moveToInTime(double x, double y, double tripTime)
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Starts movement in the direction of the given target location.
(in case of 3D space, Z coordinate of target is the same as
the current agent's Z coordinate.
"On arrival" code is executed when movement is finished.
The exact behavior of this method depends on the underlying space type.
"On arrival" code is executed when movement is finished.
The exact behavior of this method depends on the underlying space type.
- Specified by:
moveToInTime
in interfaceExtAgentWithSpatialMetrics
- Overrides:
moveToInTime
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Parameters:
x
- the x coordinate of the target locationy
- the y coordinate of the target locationtripTime
- the time of the movement trip
public void moveToInTime(double x, double y, double tripTime, TimeUnits units)
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Starts movement in the direction of the given target location.
(in case of 3D space, Z coordinate of target is the same as
the current agent's Z coordinate.
"On arrival" code is executed when movement is finished.
The exact behavior of this method depends on the underlying space type.
"On arrival" code is executed when movement is finished.
The exact behavior of this method depends on the underlying space type.
- Specified by:
moveToInTime
in interfaceExtAgentWithSpatialMetrics
- Overrides:
moveToInTime
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Parameters:
x
- the x coordinate of the target locationy
- the y coordinate of the target locationtripTime
- the time of the movement tripunits
- the time units
public void moveToInTime(INode node, Point location, double tripTime)
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Starts movement to the given network node.
Changes the speed of the agent in order to reach target in
"On arrival" code is executed when movement is finished.
Changes the speed of the agent in order to reach target in
tripTime
model time units."On arrival" code is executed when movement is finished.
- Specified by:
moveToInTime
in interfaceExtAgentWithSpatialMetrics
- Overrides:
moveToInTime
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Parameters:
node
- the network node.location
- (optional) location within node, may benull
tripTime
- the time of the movement trip
public void moveToInTime(INode node, Point location, double tripTime, TimeUnits units)
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Starts movement to the given network node.
Changes the speed of the agent in order to reach target in
"On arrival" code is executed when movement is finished.
Changes the speed of the agent in order to reach target in
tripTime
model time units."On arrival" code is executed when movement is finished.
- Specified by:
moveToInTime
in interfaceExtAgentWithSpatialMetrics
- Overrides:
moveToInTime
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Parameters:
node
- the network node.location
- (optional) location within node, may benull
tripTime
- the time of the movement tripunits
- the time units
public void jumpTo(double x, double y)
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Instantly moves the agent to a given location (without changes to Z-coordinate, if any).
Terminates any movement.
The exact behavior of this method depends on the underlying space type.
Doesn't call "on arrival" code
The exact behavior of this method depends on the underlying space type.
Doesn't call "on arrival" code
- Specified by:
jumpTo
in interfaceExtAgentWithSpatialMetrics
- Overrides:
jumpTo
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Parameters:
x
- the x coordinate of the new locationy
- the y coordinate of the new location
public void jumpTo(Point location)
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Instantly moves the agent to a given location.
Terminates any movement.
Doesn't call "on arrival" code
Doesn't call "on arrival" code
- Specified by:
jumpTo
in interfaceExtAgentWithSpatialMetrics
- Overrides:
jumpTo
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Parameters:
location
- the new location
public void jumpTo(INode node, Point location)
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Instantly moves the agent to a given network location.
Terminates any movement.
Doesn't call "on arrival" code
Doesn't call "on arrival" code
- Specified by:
jumpTo
in interfaceExtAgentWithSpatialMetrics
- Overrides:
jumpTo
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Parameters:
node
- the network node.location
- (optional) location within node, may benull
public void setArrivalCallback(ArrivalCallback arrivalCallback)
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
This method is designed for advanced users and library developers,
for general purpose arrival processing please use "On arrival" action which
can be found on the properties of Agent Type.
Sets the listener which will be notified when the agent arrives (onArrival) or when the agent movement is cancelled or redirected (onCancel). The agent should be stopped at the time this method is called and should have no arrival callback set, otherwise this method will throw an error.
The arrival callback is automatically forgotten once notified.
Sets the listener which will be notified when the agent arrives (onArrival) or when the agent movement is cancelled or redirected (onCancel). The agent should be stopped at the time this method is called and should have no arrival callback set, otherwise this method will throw an error.
The arrival callback is automatically forgotten once notified.
- Specified by:
setArrivalCallback
in interfaceExtAgentWithSpatialMetrics
- Overrides:
setArrivalCallback
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Parameters:
arrivalCallback
- the listener which will be notified about agent's arrival
public void moveToNearestAgent(Iterable<? extends Agent> agents)
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Starts movement to the nearest agent from the given collection.
Stops any current movement.
- Specified by:
moveToNearestAgent
in interfaceExtAgentWithSpatialMetrics
- Overrides:
moveToNearestAgent
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Parameters:
agents
- the collection of agents
public void moveToNearestAgent(Iterable<? extends Agent> agents, double tripTime)
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Starts movement to the nearest agent from the given collection.
Stops any current movement.
Changes the speed of the agent in order to reach target in
Changes the speed of the agent in order to reach target in
tripTime
model time units.- Specified by:
moveToNearestAgent
in interfaceExtAgentWithSpatialMetrics
- Overrides:
moveToNearestAgent
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Parameters:
agents
- the collection of agentstripTime
- the time of the movement trip
public <T extends Agent> T getNearestAgent(Iterable<T> agents)
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Returns the nearest agent from the given collection
- Specified by:
getNearestAgent
in interfaceExtAgentWithSpatialMetrics
- Overrides:
getNearestAgent
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Parameters:
agents
- the collection of agents- Returns:
- the nearest agent (never
this
one) ornull
if the collection is empty
public <T extends Agent> List<T> agentsInRange(Iterable<T> agents, double distance)
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Returns the unsorted list of agents from the given collection which are within the given
distance
from this agent- Specified by:
agentsInRange
in interfaceExtAgentWithSpatialMetrics
- Overrides:
agentsInRange
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Parameters:
agents
- the collection of agents- Returns:
- the list of agents within the given
distance
, unsorted
public <T extends Agent> List<T> agentsInRange(Iterable<T> agents, double distance, LengthUnits units)
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Returns the unsorted list of agents from the given collection which are within the given
distance
from this agent- Specified by:
agentsInRange
in interfaceExtAgentWithSpatialMetrics
- Overrides:
agentsInRange
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Parameters:
agents
- the collection of agents- Returns:
- the list of agents within the given
distance
, unsorted
public void setAutomaticHorizontalRotation(boolean yes)
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Tells agent to rotate automatically (in horizontal plane) during movements.
- Specified by:
setAutomaticHorizontalRotation
in interfaceExtAgentWithSpatialMetrics
- Overrides:
setAutomaticHorizontalRotation
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Parameters:
yes
-true
- agent will be rotated during movement,false
- rotation will not be changed- See Also:
public boolean isAutomaticHorizontalRotation()
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Returns
true
if agent is set to be rotated (in horizontal
plane) during movement, false
otherwise- Specified by:
isAutomaticHorizontalRotation
in interfaceExtAgentWithSpatialMetrics
- Overrides:
isAutomaticHorizontalRotation
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Returns:
true
if agent is set to be rotated during movement- See Also:
public double getTargetX()
Deprecated.
Description copied from interface:
ExtAgentContinuous
Returns the x of the target location if moving, otherwise current x in
continuous space.
- Specified by:
getTargetX
in interfaceExtAgentContinuous
- Specified by:
getTargetX
in interfaceExtAgentWithSpatialMetrics
- Overrides:
getTargetX
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Returns:
- the x of the target location if moving, otherwise current x
public double getTargetY()
Deprecated.
Description copied from interface:
ExtAgentContinuous
Returns the y of the target location if moving, otherwise current y in
continuous space.
- Specified by:
getTargetY
in interfaceExtAgentContinuous
- Specified by:
getTargetY
in interfaceExtAgentWithSpatialMetrics
- Overrides:
getTargetY
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Returns:
- the y of the target location if moving, otherwise current y
public double distanceTo(Agent other)
Deprecated.
Description copied from interface:
ExtAgentContinuous
Calculates the distance from this agent to another one in continuous 3D space.
- Specified by:
distanceTo
in interfaceExtAgentContinuous
- Specified by:
distanceTo
in interfaceExtAgentWithSpatialMetrics
- Overrides:
distanceTo
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Parameters:
other
- another agent- Returns:
- the distance to the other agent (in pixels)
public double distanceTo(Agent other, LengthUnits units)
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Calculates the distance from this agent to another one.
The exact behavior of this method depends on the underlying space type.
The exact behavior of this method depends on the underlying space type.
- Specified by:
distanceTo
in interfaceExtAgentWithSpatialMetrics
- Overrides:
distanceTo
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Parameters:
other
- another agentunits
- the units of length- Returns:
- the distance to the other agent
public double distanceTo(Point point)
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Calculates the distance from this agent to the point.
The exact behavior of this method depends on the underlying space type.
The exact behavior of this method depends on the underlying space type.
- Specified by:
distanceTo
in interfaceExtAgentWithSpatialMetrics
- Overrides:
distanceTo
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Returns:
- the distance to the point
public double distanceTo(Point point, LengthUnits units)
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Calculates the distance from this agent to the point.
The exact behavior of this method depends on the underlying space type.
The exact behavior of this method depends on the underlying space type.
- Specified by:
distanceTo
in interfaceExtAgentWithSpatialMetrics
- Overrides:
distanceTo
in classExtAgentContinuousDelegate<ExtAgentContinuous>
units
- the units of length- Returns:
- the distance to the point
public double distanceTo(double x, double y)
Deprecated.
Description copied from interface:
ExtAgentContinuous
Calculates the distance from this agent to a given point in the
projection to the horizontal plane (i.e. agent's Z coordinate isn't
used in the calculation).
- Specified by:
distanceTo
in interfaceExtAgentContinuous
- Specified by:
distanceTo
in interfaceExtAgentWithSpatialMetrics
- Overrides:
distanceTo
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Parameters:
x
- the x coordinate of the pointy
- the y coordinate of the point- Returns:
- the distance of Agent's projection (on the plane Z=0) to the point (x,y) (in pixels)
public double distanceTo(double x, double y, LengthUnits units)
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Calculates the distance from this agent to a given point in the
projection to the horizontal plane (i.e. agent's Z coordinate isn't
used in the calculation).
- Specified by:
distanceTo
in interfaceExtAgentWithSpatialMetrics
- Overrides:
distanceTo
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Parameters:
x
- the x coordinate of the pointy
- the y coordinate of the pointunits
- the units of lengths- Returns:
- the distance of Agent's projection (on the plane Z=0) to the point (x,y)
public boolean isMoving()
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Tests if the agent is currently moving.
- Specified by:
isMoving
in interfaceExtAgentWithSpatialMetrics
- Overrides:
isMoving
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Returns:
true
if the agent is moving,false
otherwise
public void setVelocity(double v)
Deprecated.
Description copied from interface:
ExtAgentContinuous
Changes speed of the agent in continuous space
(measured in pixels per model-time-unit).
If the agent is moving, it continues moving with the new speed. Note that nonzero speed does not mean the agent is moving - it starts moving only after moveTo() is called.
If the agent is moving, it continues moving with the new speed. Note that nonzero speed does not mean the agent is moving - it starts moving only after moveTo() is called.
- Specified by:
setVelocity
in interfaceExtAgentContinuous
- Specified by:
setVelocity
in interfaceExtAgentWithSpatialMetrics
- Overrides:
setVelocity
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Parameters:
v
- the new speed
public double getVelocity()
Deprecated.
Description copied from interface:
ExtAgentContinuous
Returns the current value of the agent speed in continuous space.
(measured in pixels per model-time-unit).
Note that nonzero speed does not mean the agent is moving - it starts moving only after moveTo is called.
Note that nonzero speed does not mean the agent is moving - it starts moving only after moveTo is called.
- Specified by:
getVelocity
in interfaceExtAgentContinuous
- Specified by:
getVelocity
in interfaceExtAgentWithSpatialMetrics
- Overrides:
getVelocity
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Returns:
- the current value of agent speed
public void setSpeed(double speedInMPS)
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Changes speed of the agent (measured in m/s).
If the agent is moving, it continues moving with the new speed. Note that nonzero speed does not mean the agent is moving - it starts moving only after moveTo() is called.
If the agent is moving, it continues moving with the new speed. Note that nonzero speed does not mean the agent is moving - it starts moving only after moveTo() is called.
- Specified by:
setSpeed
in interfaceExtAgentWithSpatialMetrics
- Overrides:
setSpeed
in classExtAgentContinuousDelegate<ExtAgentContinuous>
public void setSpeed(double s, SpeedUnits units)
Deprecated.
Description copied from interface:
ExtAgentContinuous
Changes speed of the agent in continuous space
(measured in the given units).
If the agent is moving, it continues moving with the new speed. Note that nonzero speed does not mean the agent is moving - it starts moving only after moveTo() is called.
If the agent is moving, it continues moving with the new speed. Note that nonzero speed does not mean the agent is moving - it starts moving only after moveTo() is called.
- Specified by:
setSpeed
in interfaceExtAgentContinuous
- Specified by:
setSpeed
in interfaceExtAgentWithSpatialMetrics
- Overrides:
setSpeed
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Parameters:
s
- the new speedunits
- the speed units
public double getSpeed()
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Returns the current value of the agent speed (measured in m/s).
The units of the returned value depend on the specific space type.
Note that nonzero speed does not mean the agent is moving - it starts moving only after moveTo is called.
Note that nonzero speed does not mean the agent is moving - it starts moving only after moveTo is called.
- Specified by:
getSpeed
in interfaceExtAgentWithSpatialMetrics
- Overrides:
getSpeed
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Returns:
- the current value of agent speed, meters per second
public double getSpeed(SpeedUnits units)
Deprecated.
Description copied from interface:
ExtAgentContinuous
Returns the current value of the agent speed in continuous space.
(measured in the given units).
Note that nonzero speed does not mean the agent is moving - it starts moving only after moveTo is called.
Note that nonzero speed does not mean the agent is moving - it starts moving only after moveTo is called.
- Specified by:
getSpeed
in interfaceExtAgentContinuous
- Specified by:
getSpeed
in interfaceExtAgentWithSpatialMetrics
- Overrides:
getSpeed
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Parameters:
units
- the speed units- Returns:
- the current value of agent speed
public double timeToArrival()
Deprecated.
Description copied from interface:
ExtAgentContinuous
Returns the time to arrival to the target location in continuous space, in model-time units.
If the agent is not moving, returns 0.
If the agent is not moving, returns 0.
- Specified by:
timeToArrival
in interfaceExtAgentContinuous
- Specified by:
timeToArrival
in interfaceExtAgentWithSpatialMetrics
- Overrides:
timeToArrival
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Returns:
- the time to arrival to the target location, or 0
public double timeToArrival(TimeUnits units)
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Returns the time to arrival to the target location, in time units.
If the agent is not moving, returns 0.
If the agent is not moving, returns 0.
- Specified by:
timeToArrival
in interfaceExtAgentWithSpatialMetrics
- Overrides:
timeToArrival
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Returns:
- the time to arrival to the target location, or 0
public void updatePosition()
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Updates agent coordinates
- Specified by:
updatePosition
in interfaceExtAgentWithSpatialMetrics
- Overrides:
updatePosition
in classExtAgentContinuousDelegate<ExtAgentContinuous>
public INetwork getNetwork()
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Returns the network this agent lives in, actual for agents in continuous space.
- Specified by:
getNetwork
in interfaceExtAgentWithSpatialMetrics
- Overrides:
getNetwork
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Returns:
- the network this agent lives in
public void setNetwork(INetwork network)
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Sets this agent to live in the network, actual for agents in continuous space.
- Specified by:
setNetwork
in interfaceExtAgentWithSpatialMetrics
- Overrides:
setNetwork
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Parameters:
network
- the network this agent will live in
public void setNetworkInternal(INetwork network, INode node, Position location)
Deprecated.
- Specified by:
setNetworkInternal
in interfaceExtAgentWithSpatialMetrics
- Overrides:
setNetworkInternal
in classExtAgentContinuousDelegate<ExtAgentContinuous>
public INode getNetworkNode()
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Returns the network node this agent currently is located in, actual for agents in continuous space.
- Specified by:
getNetworkNode
in interfaceExtAgentWithSpatialMetrics
- Overrides:
getNetworkNode
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Returns:
- the network node this agent currently is located in
public void setNetworkNode(INode node, Point position)
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Sets the current network location for the agent
- Specified by:
setNetworkNode
in interfaceExtAgentWithSpatialMetrics
- Overrides:
setNetworkNode
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Parameters:
node
- the network nodeposition
- (optional) location within node, may benull
public void setNetworkNode(INode node)
Deprecated.
Description copied from interface:
ExtAgentWithSpatialMetrics
Sets the current network location for the agent
- Specified by:
setNetworkNode
in interfaceExtAgentWithSpatialMetrics
- Overrides:
setNetworkNode
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Parameters:
node
- the network node
public SpaceType getSpaceType()
Deprecated.
Description copied from interface:
ExtAgentInteractive
Returns the type of space this agent lives in, one of
SPACE_CONTINUOUS, SPACE_DISCRETE, SPACE_GIS, SPACE_NONE
- Specified by:
getSpaceType
in interfaceExtAgentInteractive
- Specified by:
getSpaceType
in interfaceExtAgentWithSpatialMetrics
- Overrides:
getSpaceType
in classExtAgentContinuousDelegate<ExtAgentContinuous>
- Returns:
- one of
SPACE_CONTINUOUS, SPACE_DISCRETE, SPACE_GIS, SPACE_NONE
public void setFlowchartActivityType(FlowchartActivityType activityType, FlowchartBlock block)
Deprecated.
Description copied from interface:
ExtEntity
Sets activity type info (used in e.g. logging to DB) for the given entity
- Specified by:
setFlowchartActivityType
in interfaceExtEntity
- See Also:
-
FlowchartActivityType