AnyLogic
Expand
Font size

Class ExtAgentContinuousDelegate<E extends ExtAgentContinuous>

Type Parameters:
E - type of agent extension to delegate to. If you are creating new extension based on 'continuous space agent', please set the type to ExtAgentContinuous
All Implemented Interfaces:
AgentExtension, ExtAgentContinuous, ExtAgentInteractive, ExtAgentWithSpatialMetrics, ExtAnimationParams, ExtWithSpaceType, Serializable
Direct Known Subclasses:
ExtEntityContinuousDelegate

@Deprecated
@AnyLogicInternalAPI
public abstract class ExtAgentContinuousDelegate<E extends ExtAgentContinuous>
extends AgentExtensionImpl
implements ExtAgentContinuous
Deprecated.
Base class for extensions delegating their 'continuous space agent' activity to an existing extension of agent
See Also:
Serialized Form

Field Summary

Modifier and TypeFieldDescription
final Ee
Deprecated.
 

Constructor Summary

ConstructorDescription
ExtAgentContinuousDelegate(Agent owner, Class<E> extClass)
Deprecated.

Method Summary

Modifier and TypeMethodDescription
voidaddConnection_xjal(Agent a)
Deprecated.
This method is internal and shouldn't be called by user.
it may be removed/renamed in future
StringagentInfo()
Deprecated.
 
<T extends Agent>
List<T>
agentsInRange(Iterable<T> agents, double distance)
Deprecated.
Returns the unsorted list of agents from the given collection which are within the given distance from this agent
<T extends Agent>
List<T>
agentsInRange(Iterable<T> agents, double distance, LengthUnits units)
Deprecated.
Returns the unsorted list of agents from the given collection which are within the given distance from this agent
booleanconnectTo(Agent a)
Deprecated.
Creates a bi-directional connection between this agent and a given other agent.
voidcopyToAndDestroyOnSpaceTypeChange_xjal(ExtAgentInteractive newExt)
Deprecated.
 
voiddeliver(Object msg, Agent dest)
Deprecated.
Delivers a message to a given agent immediately during this method call.
voiddeliver(Object msg, MessageDeliveryType mode)
Deprecated.
Delivers a message to an agent or a group of agents, as specified by the mode parameter immediately during this method call.
booleandisconnectFrom(Agent a)
Deprecated.
Disconnects this agent from another given agent.
voiddisconnectFromAll()
Deprecated.
Disconnects the agent from all other agents.
doubledistanceTo(double x, double y)
Deprecated.
Calculates the distance from this agent to a given point in the projection to the horizontal plane (i.e.
doubledistanceTo(double x, double y, double z)
Deprecated.
Calculates the distance from this agent to a given point in continuous 3D space.
doubledistanceTo(double x, double y, double z, LengthUnits units)
Deprecated.
Calculates the distance from this agent to a given point in continuous 3D space.
doubledistanceTo(double x, double y, LengthUnits units)
Deprecated.
Calculates the distance from this agent to a given point in the projection to the horizontal plane (i.e.
doubledistanceTo(Agent other)
Deprecated.
Calculates the distance from this agent to another one in continuous 3D space.
doubledistanceTo(Agent other, LengthUnits units)
Deprecated.
Calculates the distance from this agent to another one.
The exact behavior of this method depends on the underlying space type.
doubledistanceTo(Point point)
Deprecated.
Calculates the distance from this agent to the point.
The exact behavior of this method depends on the underlying space type.
doubledistanceTo(Point point, LengthUnits units)
Deprecated.
Calculates the distance from this agent to the point.
The exact behavior of this method depends on the underlying space type.
doubledistanceToSq(double x, double y)
Deprecated.
Calculates the square of distance from this agent to a given point in the projection to the horizontal plane (i.e.
doubledistanceToSq(double x, double y, double z)
Deprecated.
Calculates the square of distance from this agent to a given point in continuous 3D space.
(this method has better performance compared to ExtAgentContinuous.distanceTo(double, double, double))
doubledistanceToSq(Agent other)
Deprecated.
Calculates the square of distance from this agent to another one in continuous space.
(this method has better performance compared to ExtAgentContinuous.distanceTo(Agent))
PositiongetAnimationPosition(Position out)
Deprecated.
 
doublegetAnimationX()
Deprecated.
 
doublegetAnimationY()
Deprecated.
 
doublegetAnimationZ()
Deprecated.
 
AgentgetConnectedAgent(int index)
Deprecated.
Returns the connected agent with a given index.
<T extends Agent>
List<T>
getConnections()
Deprecated.
Returns a collection of agents connected to this agent (bi-directionally), or empty collection if there have not been any connections yet.
intgetConnectionsNumber()
Deprecated.
Returns the number of agents connected to this agent.
AgentgetEnvironment()
Deprecated.
Returns the environment where this agent belongs to.
LevelgetLevel()
Deprecated.
Returns the level this agent lives in, actual for agents in continuous space.
<T extends Agent>
T
getNearestAgent(Iterable<T> agents)
Deprecated.
Returns the nearest agent from the given collection
INetworkgetNetwork()
Deprecated.
Returns the network this agent lives in, actual for agents in continuous space.
INodegetNetworkNode()
Deprecated.
Returns the network node this agent currently is located in, actual for agents in continuous space.
doublegetPresentationScaleOnOwnerSpace()
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
AgentgetRandomConnectedAgent()
Deprecated.
Returns the randomly chosen connected agent.
IRouteProvidergetRouteProvider()
Deprecated.
Returns the provider of routes for agent movement
AgentgetSpace()
Deprecated.
Returns the agent representing space this agent lives in
SpaceTypegetSpaceType()
Deprecated.
Returns the type of space this agent lives in, one of SPACE_CONTINUOUS, SPACE_DISCRETE, SPACE_GIS, SPACE_NONE
doublegetSpeed()
Deprecated.
Returns the current value of the agent speed (measured in m/s).
doublegetSpeed(SpeedUnits units)
Deprecated.
Returns the current value of the agent speed in continuous space.
doublegetTargetX()
Deprecated.
Returns the x of the target location if moving, otherwise current x in continuous space.
doublegetTargetY()
Deprecated.
Returns the y of the target location if moving, otherwise current y in continuous space.
doublegetTargetZ()
Deprecated.
Returns the z of the target location if moving, otherwise current z in continuous space.
doublegetVelocity()
Deprecated.
booleanisAnimationVisible_xjal()
Deprecated.
 
booleanisAutomaticHorizontalRotation()
Deprecated.
Returns true if agent is set to be rotated (in horizontal plane) during movement, false otherwise
booleanisAutomaticVerticalRotation()
Deprecated.
Returns true if agent is set to be rotated (in vertical direction, along Z-axis) during movement in 3D, false otherwise.
The returned value has no effect if ExtAgentWithSpatialMetrics.isAutomaticHorizontalRotation() is false
booleanisConnectedTo(Agent a)
Deprecated.
Tests if this agent is connected to a given other agent.
booleanisMoving()
Deprecated.
Tests if the agent is currently moving.
voidjumpTo(double x, double y)
Deprecated.
Instantly moves the agent to a given location (without changes to Z-coordinate, if any).
voidjumpTo(double x, double y, double z)
Deprecated.
Instantly moves the agent to a given location.
voidjumpTo(INode node, Point location)
Deprecated.
Instantly moves the agent to a given network location.
voidjumpTo(Point location)
Deprecated.
Instantly moves the agent to a given location.
voidmoveTo(double x, double y)
Deprecated.
Starts movement in the direction of the given target location.
voidmoveTo(double x, double y, double z)
Deprecated.
Starts movement in the direction of the given target location.
"On arrival" code is executed when movement is finished.
voidmoveTo(double x, double y, double z, Path3D path)
Deprecated.
Starts movement in the direction of the given target location in continuous 3D space along a given path.
voidmoveTo(double x, double y, Path2D path)
Deprecated.
Starts movement in the direction of the given target location in continuous 3D space along a given path.
voidmoveTo(Attractor attractor)
Deprecated.
Starts movement to the given attractor.
"On arrival" code is executed when movement is finished.
voidmoveTo(INode node, Point location)
Deprecated.
Starts movement to the given network node.
"On arrival" code is executed when movement is finished.
voidmoveTo(Point location)
Deprecated.
Starts movement in the direction of the given target location.
"On arrival" code is executed when movement is finished.
voidmoveTo(Point location, Path3D path)
Deprecated.
Starts movement in the direction of the given target location in continuous 3D space along a given path.
voidmoveToInTime(double x, double y, double tripTime)
Deprecated.
Starts movement in the direction of the given target location.
voidmoveToInTime(double x, double y, double z, double tripTime)
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.
voidmoveToInTime(double x, double y, double z, double tripTime, TimeUnits units)
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.
voidmoveToInTime(double x, double y, double z, Path3D path, double tripTime)
Deprecated.
Starts movement in the direction of the given target location in continuous 3D space along a given path.
voidmoveToInTime(double x, double y, double z, Path3D path, double tripTime, TimeUnits units)
Deprecated.
Starts movement in the direction of the given target location in continuous 3D space along a given path.
voidmoveToInTime(double x, double y, double tripTime, TimeUnits units)
Deprecated.
Starts movement in the direction of the given target location.
voidmoveToInTime(double x, double y, Path2D path, double tripTime)
Deprecated.
Starts movement in the direction of the given target location in continuous 3D space along a given path.
voidmoveToInTime(double x, double y, Path2D path, double tripTime, TimeUnits units)
Deprecated.
Starts movement in the direction of the given target location in continuous 3D space along a given path.
voidmoveToInTime(Attractor attractor, double tripTime)
Deprecated.
Starts movement to the given attractor.
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.
voidmoveToInTime(Attractor attractor, double tripTime, TimeUnits units)
Deprecated.
Starts movement to the given attractor.
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.
voidmoveToInTime(INode node, Point location, double tripTime)
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.
voidmoveToInTime(INode node, Point location, double tripTime, TimeUnits units)
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.
voidmoveToInTime(Point location, double tripTime)
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.
voidmoveToInTime(Point location, double tripTime, TimeUnits units)
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.
voidmoveToInTime(Point location, Path3D path, double tripTime)
Deprecated.
Starts movement in the direction of the given target location in continuous 3D space along a given path.
voidmoveToInTime(Point location, Path3D path, double tripTime, TimeUnits units)
Deprecated.
Starts movement in the direction of the given target location in continuous 3D space along a given path.
voidmoveToNearestAgent(Iterable<? extends Agent> agents)
Deprecated.
Starts movement to the nearest agent from the given collection.
voidmoveToNearestAgent(Iterable<? extends Agent> agents, double tripTime)
Deprecated.
Starts movement to the nearest agent from the given collection.
voidmoveToStraight(double x, double y, double z)
Deprecated.
Starts straight movement in the direction of the given target location.
"On arrival" code is executed when movement is finished.
voidmoveToStraight(Point location)
Deprecated.
Starts straight movement in the direction of the given target location.
"On arrival" code is executed when movement is finished.
voidmoveToStraightInTime(double x, double y, double z, double tripTime)
Deprecated.
Starts straight movement in the direction of the given target location.
"On arrival" code is executed when movement is finished.
voidmoveToStraightInTime(double x, double y, double z, double tripTime, TimeUnits units)
Deprecated.
Starts straight movement in the direction of the given target location.
"On arrival" code is executed when movement is finished.
voidmoveToStraightInTime(Point location, double tripTime)
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.
voidmoveToStraightInTime(Point location, double tripTime, TimeUnits units)
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.
intpriority()
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)
voidreceive(Object msg)
Deprecated.
Immediately delivers a message to this agent.
voidremoveConnection_xjal(Agent a)
Deprecated.
This method is internal and shouldn't be called by user.
it may be removed/renamed in future
voidrestoreConnections_xjal(List<?> connections)
Deprecated.
This method is internal and shouldn't be called by user.
it may be removed/renamed in future
voidsend(Object msg, Agent dest)
Deprecated.
Sends a message to a given agent.
voidsend(Object msg, MessageDeliveryType mode)
Deprecated.
Sends a message to an agent or a group of agents, as specified by the mode parameter.
voidsetArrivalCallback(ArrivalCallback arrivalCallback)
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).
voidsetAutomaticHorizontalRotation(boolean yes)
Deprecated.
Tells agent to rotate automatically (in horizontal plane) during movements.
voidsetAutomaticVerticalRotation(boolean yes)
Deprecated.
Tells agent to rotate automatically (in vertical direction, along Z-axis) during movements in 3D.
Has no effect if ExtAgentWithSpatialMetrics.isAutomaticHorizontalRotation() is false
voidsetEnvironment_xjal(Agent environment)
Deprecated.
This method is internal and shouldn't be called by user.
it may be removed/renamed in future
voidsetLevel(Level level)
Deprecated.
Sets this agent to live in the level, actual for agents in continuous space.
voidsetNetwork(INetwork network)
Deprecated.
Sets this agent to live in the network, actual for agents in continuous space.
voidsetNetworkInternal(INetwork network, INode node, Position location)
Deprecated.
 
voidsetNetworkNode(Attractor attractor)
Deprecated.
Sets the current network location for the agent
voidsetNetworkNode(INode node)
Deprecated.
Sets the current network location for the agent
voidsetNetworkNode(INode node, Point position)
Deprecated.
Sets the current network location for the agent
voidsetRouteProvider(IRouteProvider routeProvider)
Deprecated.
Stops agent If it is moving.
voidsetSpace(Agent space)
Deprecated.
Sets the space for agent.
voidsetSpeed(double s)
Deprecated.
Changes speed of the agent (measured in m/s).
If the agent is moving, it continues moving with the new speed.
voidsetSpeed(double s, SpeedUnits units)
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.
voidsetVelocity(double v)
Deprecated.
voidstop()
Deprecated.
Stops movement, if any.
doubletimeToArrival()
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.
doubletimeToArrival(TimeUnits units)
Deprecated.
Returns the time to arrival to the target location, in time units.
If the agent is not moving, returns 0.
voidupdatePosition()
Deprecated.
Updates agent coordinates

Methods inherited from class com.anylogic.engine.AgentExtensionImpl

error, error, getAgent, getSupportedInterfaces_xjal, next_xjal, onDestroy, onExtensionRemoved, setNext_xjal, supportsInterface_xjal

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods inherited from interface com.anylogic.engine.AgentExtension

getAgent, next_xjal, onDestroy, onExtensionRemoved, setNext_xjal, supportsInterface_xjal

Field Details

e

public final E extends ExtAgentContinuous e
Deprecated.

Constructor Details

ExtAgentContinuousDelegate

@Deprecated
public ExtAgentContinuousDelegate(Agent owner,
 Class<E> extClass)
Deprecated.

Method Details

getRouteProvider

public IRouteProvider getRouteProvider()
Deprecated.
Description copied from interface: ExtAgentWithSpatialMetrics
Returns the provider of routes for agent movement
Specified by:
getRouteProvider in interface ExtAgentWithSpatialMetrics
Returns:
the route provider

setRouteProvider

public void setRouteProvider(IRouteProvider routeProvider)
Deprecated.
Description copied from interface: ExtAgentWithSpatialMetrics
Stops agent If it is moving. Sets the route provider for agent movement. Route provider has several implementations: network, straight movement, specific movement in GIS space such as movement by roads.
Specified by:
setRouteProvider in interface ExtAgentWithSpatialMetrics
Parameters:
routeProvider - the route provider

getLevel

public Level getLevel()
Deprecated.
Description copied from interface: ExtAgentWithSpatialMetrics
Returns the level this agent lives in, actual for agents in continuous space.
Specified by:
getLevel in interface ExtAgentWithSpatialMetrics
Returns:
the level this agent lives in

setLevel

public void setLevel(Level level)
Deprecated.
Description copied from interface: ExtAgentWithSpatialMetrics
Sets this agent to live in the level, actual for agents in continuous space.
Specified by:
setLevel in interface ExtAgentWithSpatialMetrics
Parameters:
level - the level this agent will live in

getNetwork

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 interface ExtAgentWithSpatialMetrics
Returns:
the network this agent lives in

setNetwork

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 interface ExtAgentWithSpatialMetrics
Parameters:
network - the network this agent will live in

setNetworkInternal

public void setNetworkInternal(INetwork network,
 INode node,
 Position location)
Deprecated.
Specified by:
setNetworkInternal in interface ExtAgentWithSpatialMetrics

getNetworkNode

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 interface ExtAgentWithSpatialMetrics
Returns:
the network node this agent currently is located in

setNetworkNode

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 interface ExtAgentWithSpatialMetrics
Parameters:
node - the network node
position - (optional) location within node, may be null

setNetworkNode

public void setNetworkNode(INode node)
Deprecated.
Description copied from interface: ExtAgentWithSpatialMetrics
Sets the current network location for the agent
Specified by:
setNetworkNode in interface ExtAgentWithSpatialMetrics
Parameters:
node - the network node

setNetworkNode

public void setNetworkNode(Attractor attractor)
Deprecated.
Description copied from interface: ExtAgentContinuous
Sets the current network location for the agent
Specified by:
setNetworkNode in interface ExtAgentContinuous
Parameters:
attractor - the attractor

getSpaceType

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 interface ExtAgentInteractive
Specified by:
getSpaceType in interface ExtAgentWithSpatialMetrics
Returns:
one of SPACE_CONTINUOUS, SPACE_DISCRETE, SPACE_GIS, SPACE_NONE

getAnimationX

public double getAnimationX()
Deprecated.
Specified by:
getAnimationX in interface ExtAnimationParams

getAnimationY

public double getAnimationY()
Deprecated.
Specified by:
getAnimationY in interface ExtAnimationParams

getAnimationZ

public double getAnimationZ()
Deprecated.
Specified by:
getAnimationZ in interface ExtAnimationParams

getAnimationPosition

public Position getAnimationPosition(Position out)
Deprecated.
Specified by:
getAnimationPosition in interface ExtAnimationParams

isAnimationVisible_xjal

public boolean isAnimationVisible_xjal()
Deprecated.
Specified by:
isAnimationVisible_xjal in interface ExtAnimationParams

getSpace

public Agent getSpace()
Deprecated.
Description copied from interface: ExtAnimationParams
Returns the agent representing space this agent lives in
Specified by:
getSpace in interface ExtAnimationParams
Returns:
the agent representing space this agent lives in

getPresentationScaleOnOwnerSpace

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 interface ExtAnimationParams
Returns:
the scale of presentation animation on owner space

setSpace

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 interface ExtAnimationParams
Parameters:
space - the agent representing space this agent will live in

getEnvironment

public Agent getEnvironment()
Deprecated.
Description copied from interface: ExtAgentInteractive
Returns the environment where this agent belongs to.
Specified by:
getEnvironment in interface ExtAgentInteractive
Returns:
the environment where this agent belongs to

getConnections

public <T extends Agent> List<T> getConnections()
Deprecated.
Description copied from interface: ExtAgentInteractive
Returns a collection of agents connected to this agent (bi-directionally), or empty collection if there have not been any connections yet. You should not modify this collection.
Specified by:
getConnections in interface ExtAgentInteractive
Returns:
collection of connected agents, may be empty

getConnectionsNumber

public int getConnectionsNumber()
Deprecated.
Description copied from interface: ExtAgentInteractive
Returns the number of agents connected to this agent.
Specified by:
getConnectionsNumber in interface ExtAgentInteractive
Returns:
the number of agents connected to this agent

getConnectedAgent

public Agent getConnectedAgent(int index)
Deprecated.
Description copied from interface: ExtAgentInteractive
Returns the connected agent with a given index.
Specified by:
getConnectedAgent in interface ExtAgentInteractive
Parameters:
index - the index of connection
Returns:
the connected agent with a given index

getRandomConnectedAgent

public Agent getRandomConnectedAgent()
Deprecated.
Description copied from interface: ExtAgentInteractive
Returns the randomly chosen connected agent.
Specified by:
getRandomConnectedAgent in interface ExtAgentInteractive
Returns:
the connected agent

isConnectedTo

public boolean isConnectedTo(Agent a)
Deprecated.
Description copied from interface: ExtAgentInteractive
Tests if this agent is connected to a given other agent.
Specified by:
isConnectedTo in interface ExtAgentInteractive
Parameters:
a - another agent
Returns:
true if the agents are connected, false otherwise

updatePosition

public void updatePosition()
Deprecated.
Description copied from interface: ExtAgentWithSpatialMetrics
Updates agent coordinates
Specified by:
updatePosition in interface ExtAgentWithSpatialMetrics

stop

public void stop()
Deprecated.
Description copied from interface: ExtAgentContinuous
Stops movement, if any.
Specified by:
stop in interface ExtAgentContinuous
Specified by:
stop in interface ExtAgentWithSpatialMetrics

connectTo

public boolean connectTo(Agent a)
Deprecated.
Description copied from interface: ExtAgentInteractive
Creates a bi-directional connection between this agent and a given other agent. Raises error if you try to connect to itself. Does nothing and returns false if agents are already connected.
Specified by:
connectTo in interface ExtAgentInteractive
Parameters:
a - another agent
Returns:
true if was not connected before, false if was already connected

disconnectFrom

public boolean disconnectFrom(Agent a)
Deprecated.
Description copied from interface: ExtAgentInteractive
Disconnects this agent from another given agent.
Specified by:
disconnectFrom in interface ExtAgentInteractive
Parameters:
a - another agent
Returns:
true if the agents were connected, false otherwise

disconnectFromAll

public void disconnectFromAll()
Deprecated.
Description copied from interface: ExtAgentInteractive
Disconnects the agent from all other agents.
Specified by:
disconnectFromAll in interface ExtAgentInteractive

send

public void send(Object msg,
 Agent dest)
Deprecated.
Description copied from interface: ExtAgentInteractive
Sends a message to a given agent. The message will be delivered during a separate event scheduled to occur in zero time after the current one. If you are OK with the message delivered immediately during this event, use deliver() method, which has better performance.
Specified by:
send in interface ExtAgentInteractive
Parameters:
msg - a message
dest - the destination agent

send

public void send(Object msg,
 MessageDeliveryType mode)
Deprecated.
Description copied from interface: ExtAgentInteractive
Sends a message to an agent or a group of agents, as specified by the mode parameter. The message will be delivered during a separate event scheduled to occur in zero time after the current one. If you are OK with the message delivered immediately during this event, use deliver() method, which has better performance.
Specified by:
send in interface ExtAgentInteractive
Parameters:
msg - a message
mode - specifies the message sending mode (ALL, RANDOM, ...)

jumpTo

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
Specified by:
jumpTo in interface ExtAgentWithSpatialMetrics
Parameters:
x - the x coordinate of the new location
y - the y coordinate of the new location

deliver

public void deliver(Object msg,
 Agent dest)
Deprecated.
Description copied from interface: ExtAgentInteractive
Delivers a message to a given agent immediately during this method call. If you wish this to happen in a separate event, use send() method.
Specified by:
deliver in interface ExtAgentInteractive
Parameters:
msg - a message
dest - the destination agent

deliver

public void deliver(Object msg,
 MessageDeliveryType mode)
Deprecated.
Description copied from interface: ExtAgentInteractive
Delivers a message to an agent or a group of agents, as specified by the mode parameter immediately during this method call. If you wish this to happen in a separate event, use send() method.
Specified by:
deliver in interface ExtAgentInteractive
Parameters:
msg - the message
mode - specifies the message sending mode (ALL, RANDOM, ...)

jumpTo

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
Specified by:
jumpTo in interface ExtAgentWithSpatialMetrics
Parameters:
location - the new location

jumpTo

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
Specified by:
jumpTo in interface ExtAgentWithSpatialMetrics
Parameters:
node - the network node.
location - (optional) location within node, may be null

jumpTo

public void jumpTo(double x,
 double y,
 double z)
Deprecated.
Description copied from interface: ExtAgentContinuous
Instantly moves the agent to a given location. Terminates any movement.
Doesn't call "on arrival" code
Specified by:
jumpTo in interface ExtAgentContinuous
Parameters:
x - the x coordinate of the new location
y - the y coordinate of the new location
z - the z coordinate of the new location

receive

public void receive(Object msg)
Deprecated.
Description copied from interface: ExtAgentInteractive
Immediately delivers a message to this agent. Sender is set to null.
Specified by:
receive in interface ExtAgentInteractive
Parameters:
msg - the message

agentInfo

public String agentInfo()
Deprecated.
Specified by:
agentInfo in interface ExtAgentInteractive

setEnvironment_xjal

@AnyLogicInternalAPI
public void setEnvironment_xjal(Agent environment)
Deprecated.
Description copied from interface: ExtAgentInteractive
This method is internal and shouldn't be called by user.
it may be removed/renamed in future
Specified by:
setEnvironment_xjal in interface ExtAgentInteractive

setArrivalCallback

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.
Specified by:
setArrivalCallback in interface ExtAgentWithSpatialMetrics
Parameters:
arrivalCallback - the listener which will be notified about agent's arrival

moveTo

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.
Specified by:
moveTo in interface ExtAgentWithSpatialMetrics
Parameters:
x - the x coordinate of the target location
y - the y coordinate of the target location

moveToInTime

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.
Specified by:
moveToInTime in interface ExtAgentWithSpatialMetrics
Parameters:
x - the x coordinate of the target location
y - the y coordinate of the target location
tripTime - the time of the movement trip

moveToInTime

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.
Specified by:
moveToInTime in interface ExtAgentWithSpatialMetrics
Parameters:
x - the x coordinate of the target location
y - the y coordinate of the target location
tripTime - the time of the movement trip
units - the time units

moveToStraight

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.
Specified by:
moveToStraight in interface ExtAgentWithSpatialMetrics
Parameters:
location - the target location

moveToStraightInTime

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 tripTime model time units.
"On arrival" code is executed when movement is finished.
Specified by:
moveToStraightInTime in interface ExtAgentWithSpatialMetrics
Parameters:
location - the target location
tripTime - the time of the movement trip

moveToStraightInTime

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 tripTime model time units.
"On arrival" code is executed when movement is finished.
Specified by:
moveToStraightInTime in interface ExtAgentWithSpatialMetrics
Parameters:
location - the target location
tripTime - the time of the movement trip
units - the time units

moveToStraight

public void moveToStraight(double x,
 double y,
 double z)
Deprecated.
Description copied from interface: ExtAgentContinuous
Starts straight movement in the direction of the given target location.
"On arrival" code is executed when movement is finished.
Specified by:
moveToStraight in interface ExtAgentContinuous
Parameters:
x - the x coordinate of the target location
y - the y coordinate of the target location
z - the z coordinate of the target location

moveToStraightInTime

public void moveToStraightInTime(double x,
 double y,
 double z,
 double tripTime)
Deprecated.
Description copied from interface: ExtAgentContinuous
Starts straight movement in the direction of the given target location.
"On arrival" code is executed when movement is finished.
Specified by:
moveToStraightInTime in interface ExtAgentContinuous
Parameters:
x - the x coordinate of the target location
y - the y coordinate of the target location
z - the z coordinate of the target location
tripTime - the time of the movement trip

moveToStraightInTime

public void moveToStraightInTime(double x,
 double y,
 double z,
 double tripTime,
 TimeUnits units)
Deprecated.
Description copied from interface: ExtAgentContinuous
Starts straight movement in the direction of the given target location.
"On arrival" code is executed when movement is finished.
Specified by:
moveToStraightInTime in interface ExtAgentContinuous
Parameters:
x - the x coordinate of the target location
y - the y coordinate of the target location
z - the z coordinate of the target location
tripTime - the time of the movement trip
units - the time units

addConnection_xjal

@AnyLogicInternalAPI
public void addConnection_xjal(Agent a)
Deprecated.
Description copied from interface: ExtAgentInteractive
This method is internal and shouldn't be called by user.
it may be removed/renamed in future
Specified by:
addConnection_xjal in interface ExtAgentInteractive

moveTo

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.
Specified by:
moveTo in interface ExtAgentWithSpatialMetrics
Parameters:
location - the target location

moveToInTime

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 tripTime model time units.
"On arrival" code is executed when movement is finished.
Specified by:
moveToInTime in interface ExtAgentWithSpatialMetrics
Parameters:
location - the target location
tripTime - the time of the movement trip

moveToInTime

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 tripTime model time units.
"On arrival" code is executed when movement is finished.
Specified by:
moveToInTime in interface ExtAgentWithSpatialMetrics
Parameters:
location - the target location
tripTime - the time of the movement trip
units - the time units

moveTo

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.
Specified by:
moveTo in interface ExtAgentWithSpatialMetrics
Parameters:
node - the network node.
location - (optional) location within node, may be null

moveToInTime

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 tripTime model time units.
"On arrival" code is executed when movement is finished.
Specified by:
moveToInTime in interface ExtAgentWithSpatialMetrics
Parameters:
node - the network node.
location - (optional) location within node, may be null
tripTime - the time of the movement trip

moveToInTime

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 tripTime model time units.
"On arrival" code is executed when movement is finished.
Specified by:
moveToInTime in interface ExtAgentWithSpatialMetrics
Parameters:
node - the network node.
location - (optional) location within node, may be null
tripTime - the time of the movement trip
units - the time units

moveTo

public void moveTo(Attractor attractor)
Deprecated.
Description copied from interface: ExtAgentContinuous
Starts movement to the given attractor.
"On arrival" code is executed when movement is finished.
Specified by:
moveTo in interface ExtAgentContinuous
Parameters:
attractor - the attractor.

moveToInTime

public void moveToInTime(Attractor attractor,
 double tripTime)
Deprecated.
Description copied from interface: ExtAgentContinuous
Starts movement to the given attractor.
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 interface ExtAgentContinuous
Parameters:
attractor - the attractor.
tripTime - the time of the movement trip

moveToInTime

public void moveToInTime(Attractor attractor,
 double tripTime,
 TimeUnits units)
Deprecated.
Description copied from interface: ExtAgentContinuous
Starts movement to the given attractor.
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 interface ExtAgentContinuous
Parameters:
attractor - the attractor.
tripTime - the time of the movement trip
units - the time units

removeConnection_xjal

@AnyLogicInternalAPI
public void removeConnection_xjal(Agent a)
Deprecated.
Description copied from interface: ExtAgentInteractive
This method is internal and shouldn't be called by user.
it may be removed/renamed in future
Specified by:
removeConnection_xjal in interface ExtAgentInteractive

moveTo

public void moveTo(double x,
 double y,
 double z)
Deprecated.
Description copied from interface: ExtAgentContinuous
Starts movement in the direction of the given target location.
"On arrival" code is executed when movement is finished.
Specified by:
moveTo in interface ExtAgentContinuous
Parameters:
x - the x coordinate of the target location
y - the y coordinate of the target location
z - the z coordinate of the target location

moveToInTime

public void moveToInTime(double x,
 double y,
 double z,
 double tripTime)
Deprecated.
Description copied from interface: ExtAgentContinuous
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.
Specified by:
moveToInTime in interface ExtAgentContinuous
Parameters:
x - the x coordinate of the target location
y - the y coordinate of the target location
z - the z coordinate of the target location
tripTime - the time of the movement trip

moveToInTime

public void moveToInTime(double x,
 double y,
 double z,
 double tripTime,
 TimeUnits units)
Deprecated.
Description copied from interface: ExtAgentContinuous
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.
Specified by:
moveToInTime in interface ExtAgentContinuous
Parameters:
x - the x coordinate of the target location
y - the y coordinate of the target location
z - the z coordinate of the target location
tripTime - the time of the movement trip
units - the time units

restoreConnections_xjal

@AnyLogicInternalAPI
public void restoreConnections_xjal(List<?> connections)
Deprecated.
Description copied from interface: ExtAgentInteractive
This method is internal and shouldn't be called by user.
it may be removed/renamed in future
Specified by:
restoreConnections_xjal in interface ExtAgentInteractive

moveTo

public void moveTo(double x,
 double y,
 Path2D path)
Deprecated.
Description copied from interface: ExtAgentContinuous
Starts movement in the direction of the given target location in continuous 3D space along a given path. Z coordinate of target (and path points) is the same as the current agent's Z coordinate. If the agent is currently not on the path, it will first move to the closest point on the path. If the target is not on the path, the agent will move along the path to the point closest to the target, and then move to the target.
"On arrival" code is executed when movement is finished.
Specified by:
moveTo in interface ExtAgentContinuous
Parameters:
x - the x coordinate of the target location
y - the y coordinate of the target location
path - the polyline along which the agent will move

moveToInTime

public void moveToInTime(double x,
 double y,
 Path2D path,
 double tripTime)
Deprecated.
Description copied from interface: ExtAgentContinuous
Starts movement in the direction of the given target location in continuous 3D space along a given path. Z coordinate of target (and path points) is the same as the current agent's Z coordinate. If the agent is currently not on the path, it will first move to the closest point on the path. If the target is not on the path, the agent will move along the path to the point closest to the target, and then move to the target.
"On arrival" code is executed when movement is finished.
Specified by:
moveToInTime in interface ExtAgentContinuous
Parameters:
x - the x coordinate of the target location
y - the y coordinate of the target location
path - the polyline along which the agent will move
tripTime - the time of the movement trip

moveToInTime

public void moveToInTime(double x,
 double y,
 Path2D path,
 double tripTime,
 TimeUnits units)
Deprecated.
Description copied from interface: ExtAgentContinuous
Starts movement in the direction of the given target location in continuous 3D space along a given path. Z coordinate of target (and path points) is the same as the current agent's Z coordinate. If the agent is currently not on the path, it will first move to the closest point on the path. If the target is not on the path, the agent will move along the path to the point closest to the target, and then move to the target.
"On arrival" code is executed when movement is finished.
Specified by:
moveToInTime in interface ExtAgentContinuous
Parameters:
x - the x coordinate of the target location
y - the y coordinate of the target location
path - the polyline along which the agent will move
tripTime - the time of the movement trip
units - the time units

moveTo

public void moveTo(Point location,
 Path3D path)
Deprecated.
Description copied from interface: ExtAgentContinuous
Starts movement in the direction of the given target location in continuous 3D space along a given path. If the agent is currently not on the path, it will first move to the closest point on the path. If the target is not on the path, the agent will move along the path to the point closest to the target, and then move to the target.
"On arrival" code is executed when movement is finished.
Specified by:
moveTo in interface ExtAgentContinuous
Parameters:
location - the target location
path - the polyline along which the agent will move

moveToInTime

public void moveToInTime(Point location,
 Path3D path,
 double tripTime)
Deprecated.
Description copied from interface: ExtAgentContinuous
Starts movement in the direction of the given target location in continuous 3D space along a given path. If the agent is currently not on the path, it will first move to the closest point on the path. If the target is not on the path, the agent will move along the path to the point closest to the target, and then move to the target.
"On arrival" code is executed when movement is finished.
Specified by:
moveToInTime in interface ExtAgentContinuous
Parameters:
location - the target location
path - the polyline along which the agent will move
tripTime - the time of the movement trip

moveToInTime

public void moveToInTime(Point location,
 Path3D path,
 double tripTime,
 TimeUnits units)
Deprecated.
Description copied from interface: ExtAgentContinuous
Starts movement in the direction of the given target location in continuous 3D space along a given path. If the agent is currently not on the path, it will first move to the closest point on the path. If the target is not on the path, the agent will move along the path to the point closest to the target, and then move to the target.
"On arrival" code is executed when movement is finished.
Specified by:
moveToInTime in interface ExtAgentContinuous
Parameters:
location - the target location
path - the polyline along which the agent will move
tripTime - the time of the movement trip
units - the time units

moveTo

public void moveTo(double x,
 double y,
 double z,
 Path3D path)
Deprecated.
Description copied from interface: ExtAgentContinuous
Starts movement in the direction of the given target location in continuous 3D space along a given path. If the agent is currently not on the path, it will first move to the closest point on the path. If the target is not on the path, the agent will move along the path to the point closest to the target, and then move to the target.
"On arrival" code is executed when movement is finished.
Specified by:
moveTo in interface ExtAgentContinuous
Parameters:
x - the x coordinate of the target location
y - the y coordinate of the target location
z - the z coordinate of the target location
path - the polyline along which the agent will move

moveToInTime

public void moveToInTime(double x,
 double y,
 double z,
 Path3D path,
 double tripTime)
Deprecated.
Description copied from interface: ExtAgentContinuous
Starts movement in the direction of the given target location in continuous 3D space along a given path. If the agent is currently not on the path, it will first move to the closest point on the path. If the target is not on the path, the agent will move along the path to the point closest to the target, and then move to the target.
"On arrival" code is executed when movement is finished.
Specified by:
moveToInTime in interface ExtAgentContinuous
Parameters:
x - the x coordinate of the target location
y - the y coordinate of the target location
z - the z coordinate of the target location
path - the polyline along which the agent will move
tripTime - the time of the movement trip

moveToInTime

public void moveToInTime(double x,
 double y,
 double z,
 Path3D path,
 double tripTime,
 TimeUnits units)
Deprecated.
Description copied from interface: ExtAgentContinuous
Starts movement in the direction of the given target location in continuous 3D space along a given path. If the agent is currently not on the path, it will first move to the closest point on the path. If the target is not on the path, the agent will move along the path to the point closest to the target, and then move to the target.
"On arrival" code is executed when movement is finished.
Specified by:
moveToInTime in interface ExtAgentContinuous
Parameters:
x - the x coordinate of the target location
y - the y coordinate of the target location
z - the z coordinate of the target location
path - the polyline along which the agent will move
tripTime - the time of the movement trip
units - the time units

moveToNearestAgent

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 interface ExtAgentWithSpatialMetrics
Parameters:
agents - the collection of agents

moveToNearestAgent

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 tripTime model time units.
Specified by:
moveToNearestAgent in interface ExtAgentWithSpatialMetrics
Parameters:
agents - the collection of agents
tripTime - the time of the movement trip

getNearestAgent

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 interface ExtAgentWithSpatialMetrics
Parameters:
agents - the collection of agents
Returns:
the nearest agent (never this one) or null if the collection is empty

agentsInRange

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 interface ExtAgentWithSpatialMetrics
Parameters:
agents - the collection of agents
Returns:
the list of agents within the given distance, unsorted

agentsInRange

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 interface ExtAgentWithSpatialMetrics
Parameters:
agents - the collection of agents
Returns:
the list of agents within the given distance, unsorted

setAutomaticHorizontalRotation

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 interface ExtAgentWithSpatialMetrics
Parameters:
yes - true - agent will be rotated during movement, false - rotation will not be changed
See Also:

isAutomaticHorizontalRotation

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 interface ExtAgentWithSpatialMetrics
Returns:
true if agent is set to be rotated during movement
See Also:

setAutomaticVerticalRotation

public void setAutomaticVerticalRotation(boolean yes)
Deprecated.
Description copied from interface: ExtAgentContinuous
Tells agent to rotate automatically (in vertical direction, along Z-axis) during movements in 3D.
Has no effect if ExtAgentWithSpatialMetrics.isAutomaticHorizontalRotation() is false
Specified by:
setAutomaticVerticalRotation in interface ExtAgentContinuous
Parameters:
yes - true - agent will be rotated during movement (e.g. box travelling on conveyor slope), false - rotation will not be changed (e.g. passenger going upstairs)
See Also:

isAutomaticVerticalRotation

public boolean isAutomaticVerticalRotation()
Deprecated.
Description copied from interface: ExtAgentContinuous
Returns true if agent is set to be rotated (in vertical direction, along Z-axis) during movement in 3D, false otherwise.
The returned value has no effect if ExtAgentWithSpatialMetrics.isAutomaticHorizontalRotation() is false
Specified by:
isAutomaticVerticalRotation in interface ExtAgentContinuous
Returns:
true if agent is set to be rotated during movement (e.g. box travelling on conveyor slope), false - rotation will not be changed (e.g. passenger going upstairs)
See Also:

getTargetX

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 interface ExtAgentContinuous
Specified by:
getTargetX in interface ExtAgentWithSpatialMetrics
Returns:
the x of the target location if moving, otherwise current x

getTargetY

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 interface ExtAgentContinuous
Specified by:
getTargetY in interface ExtAgentWithSpatialMetrics
Returns:
the y of the target location if moving, otherwise current y

getTargetZ

public double getTargetZ()
Deprecated.
Description copied from interface: ExtAgentContinuous
Returns the z of the target location if moving, otherwise current z in continuous space.
Specified by:
getTargetZ in interface ExtAgentContinuous
Returns:
the z of the target location if moving, otherwise current z

distanceTo

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 interface ExtAgentContinuous
Specified by:
distanceTo in interface ExtAgentWithSpatialMetrics
Parameters:
other - another agent
Returns:
the distance to the other agent (in pixels)

distanceTo

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.
Specified by:
distanceTo in interface ExtAgentWithSpatialMetrics
Parameters:
other - another agent
units - the units of length
Returns:
the distance to the other agent

distanceTo

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.
Specified by:
distanceTo in interface ExtAgentWithSpatialMetrics
Returns:
the distance to the point

distanceTo

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.
Specified by:
distanceTo in interface ExtAgentWithSpatialMetrics
units - the units of length
Returns:
the distance to the point

distanceToSq

public double distanceToSq(Agent other)
Deprecated.
Description copied from interface: ExtAgentContinuous
Calculates the square of distance from this agent to another one in continuous space.
(this method has better performance compared to ExtAgentContinuous.distanceTo(Agent))
Specified by:
distanceToSq in interface ExtAgentContinuous
Parameters:
other - another agent
Returns:
the square of distance to the other agent

distanceTo

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 interface ExtAgentContinuous
Specified by:
distanceTo in interface ExtAgentWithSpatialMetrics
Parameters:
x - the x coordinate of the point
y - 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)

distanceTo

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 interface ExtAgentWithSpatialMetrics
Parameters:
x - the x coordinate of the point
y - the y coordinate of the point
units - the units of lengths
Returns:
the distance of Agent's projection (on the plane Z=0) to the point (x,y)

distanceToSq

public double distanceToSq(double x,
 double y)
Deprecated.
Description copied from interface: ExtAgentContinuous
Calculates the square of 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).
(this method has better performance compared to ExtAgentContinuous.distanceTo(double, double))
Specified by:
distanceToSq in interface ExtAgentContinuous
Parameters:
x - the x coordinate of the point
y - the y coordinate of the point
Returns:
the square of distance of Agent's projection (on the plane Z=0) to the point (x,y)

distanceTo

public double distanceTo(double x,
 double y,
 double z)
Deprecated.
Description copied from interface: ExtAgentContinuous
Calculates the distance from this agent to a given point in continuous 3D space.
Specified by:
distanceTo in interface ExtAgentContinuous
Parameters:
x - the x coordinate of the point
y - the y coordinate of the point
z - the z coordinate of the point
Returns:
the distance to the point (x,y,z) (in pixels)

distanceTo

public double distanceTo(double x,
 double y,
 double z,
 LengthUnits units)
Deprecated.
Description copied from interface: ExtAgentContinuous
Calculates the distance from this agent to a given point in continuous 3D space.
Specified by:
distanceTo in interface ExtAgentContinuous
Parameters:
x - the x coordinate of the point
y - the y coordinate of the point
z - the z coordinate of the point
Returns:
the distance to the point (x,y,z)

distanceToSq

public double distanceToSq(double x,
 double y,
 double z)
Deprecated.
Description copied from interface: ExtAgentContinuous
Calculates the square of distance from this agent to a given point in continuous 3D space.
(this method has better performance compared to ExtAgentContinuous.distanceTo(double, double, double))
Specified by:
distanceToSq in interface ExtAgentContinuous
Parameters:
x - the x coordinate of the point
y - the y coordinate of the point
z - the z coordinate of the point
Returns:
the square of distance to the point (x,y,z)

isMoving

public boolean isMoving()
Deprecated.
Description copied from interface: ExtAgentWithSpatialMetrics
Tests if the agent is currently moving.
Specified by:
isMoving in interface ExtAgentWithSpatialMetrics
Returns:
true if the agent is moving, false otherwise

setVelocity

@Deprecated
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.
Specified by:
setVelocity in interface ExtAgentContinuous
Specified by:
setVelocity in interface ExtAgentWithSpatialMetrics
Parameters:
v - the new speed

getVelocity

@Deprecated
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.
Specified by:
getVelocity in interface ExtAgentContinuous
Specified by:
getVelocity in interface ExtAgentWithSpatialMetrics
Returns:
the current value of agent speed

getSpeed

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.
Specified by:
getSpeed in interface ExtAgentWithSpatialMetrics
Returns:
the current value of agent speed, meters per second

setSpeed

public void setSpeed(double s)
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.
Specified by:
setSpeed in interface ExtAgentWithSpatialMetrics

setSpeed

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.
Specified by:
setSpeed in interface ExtAgentContinuous
Specified by:
setSpeed in interface ExtAgentWithSpatialMetrics
Parameters:
s - the new speed
units - the speed units

getSpeed

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.
Specified by:
getSpeed in interface ExtAgentContinuous
Specified by:
getSpeed in interface ExtAgentWithSpatialMetrics
Parameters:
units - the speed units
Returns:
the current value of agent speed

timeToArrival

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.
Specified by:
timeToArrival in interface ExtAgentContinuous
Specified by:
timeToArrival in interface ExtAgentWithSpatialMetrics
Returns:
the time to arrival to the target location, or 0

timeToArrival

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.
Specified by:
timeToArrival in interface ExtAgentWithSpatialMetrics
Returns:
the time to arrival to the target location, or 0

copyToAndDestroyOnSpaceTypeChange_xjal

public void copyToAndDestroyOnSpaceTypeChange_xjal(ExtAgentInteractive newExt)
Deprecated.
Specified by:
copyToAndDestroyOnSpaceTypeChange_xjal in interface ExtAgentInteractive

priority

@AnyLogicInternalAPI
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)
Specified by:
priority in interface AgentExtension
Overrides:
priority in class AgentExtensionImpl
Returns:
int value, see also P_* constants