public interface ExtAgentContinuous extends ExtAgentInteractive, ExtAnimationParams, ExtAgentWithSpatialMetrics, ExtWithSpaceType
P_AGENT_INTERACTIVE_DELEGATE, P_AGENT_WITH_SPATIAL_METRICS_DELEGATE, P_AGENT_WITH_SPECIFIC_SPACE, P_AGENT_WITH_SPECIFIC_SPACE_DELEGATE, P_ENTITY_DELEGATE, P_ENV_WITH_SPECIFIC_SPACE, P_ROOT, P_SPACE, P_USER_EXT
Modifier and Type  Method and Description 

double 
distanceTo(Agent other)
Calculates the distance from this agent to another one in continuous 3D space.

double 
distanceTo(double x,
double y)
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).

double 
distanceTo(double x,
double y,
double z)
Calculates the distance from this agent to a given point in continuous 3D space.

double 
distanceTo(double x,
double y,
double z,
LengthUnits units)
Calculates the distance from this agent to a given point in continuous 3D space.

double 
distanceToSq(Agent other)
Calculates the square of distance from this agent to another one in continuous space.

double 
distanceToSq(double x,
double y)
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).

double 
distanceToSq(double x,
double y,
double z)
Calculates the square of distance from this agent to a given point in continuous 3D space.

double 
getSpeed(SpeedUnits units)
Returns the current value of the agent speed in continuous space.

double 
getTargetX()
Returns the x of the target location if moving, otherwise current x in
continuous space.

double 
getTargetY()
Returns the y of the target location if moving, otherwise current y in
continuous space.

double 
getTargetZ()
Returns the z of the target location if moving, otherwise current z in
continuous space.

double 
getVelocity()
Deprecated.
this function is deprecated since AnyLogic 7.1. Please use
#getSpeed(double, SpeedUnits) instead 
boolean 
isAutomaticVerticalRotation()
Returns
true if agent is set to be rotated (in vertical direction,
along Zaxis) during movement in 3D, false otherwise. 
void 
jumpTo(double x,
double y,
double z)
Instantly moves the agent to a given location.

void 
moveTo(Attractor attractor)
Starts movement to the given attractor.

void 
moveTo(double x,
double y,
double z)
Starts movement in the direction of the given target location.

void 
moveTo(double x,
double y,
double z,
Path3D path)
Starts movement in the direction of the given target location in
continuous 3D space along a given path.

void 
moveTo(double x,
double y,
Path2D path)
Starts movement in the direction of the given target location in
continuous 3D space along a given path.

void 
moveTo(Point location,
Path3D path)
Starts movement in the direction of the given target location in
continuous 3D space along a given path.

void 
moveToInTime(Attractor attractor,
double tripTime)
Starts movement to the given attractor.

void 
moveToInTime(Attractor attractor,
double tripTime,
TimeUnits units)
Starts movement to the given attractor.

void 
moveToInTime(double x,
double y,
double z,
double tripTime)
Starts movement in the direction of the given target location.

void 
moveToInTime(double x,
double y,
double z,
double tripTime,
TimeUnits units)
Starts movement in the direction of the given target location.

void 
moveToInTime(double x,
double y,
double z,
Path3D path,
double tripTime)
Starts movement in the direction of the given target location in
continuous 3D space along a given path.

void 
moveToInTime(double x,
double y,
double z,
Path3D path,
double tripTime,
TimeUnits units)
Starts movement in the direction of the given target location in
continuous 3D space along a given path.

void 
moveToInTime(double x,
double y,
Path2D path,
double tripTime)
Starts movement in the direction of the given target location in
continuous 3D space along a given path.

void 
moveToInTime(double x,
double y,
Path2D path,
double tripTime,
TimeUnits units)
Starts movement in the direction of the given target location in
continuous 3D space along a given path.

void 
moveToInTime(Point location,
Path3D path,
double tripTime)
Starts movement in the direction of the given target location in
continuous 3D space along a given path.

void 
moveToInTime(Point location,
Path3D path,
double tripTime,
TimeUnits units)
Starts movement in the direction of the given target location in
continuous 3D space along a given path.

void 
moveToStraight(double x,
double y,
double z)
Starts straight movement in the direction of the given target location.

void 
moveToStraightInTime(double x,
double y,
double z,
double tripTime)
Starts straight movement in the direction of the given target location.

void 
moveToStraightInTime(double x,
double y,
double z,
double tripTime,
TimeUnits units)
Starts straight movement in the direction of the given target location.

void 
setAutomaticVerticalRotation(boolean yes)
Tells agent to rotate automatically (in vertical direction, along Zaxis)
during movements in 3D.

void 
setNetworkNode(Attractor attractor)
Sets the current network location for the agent

void 
setSpeed(double s,
SpeedUnits units)
Changes speed of the agent in continuous space
(measured in the given units).

void 
setVelocity(double v)
Deprecated.
this function is deprecated since AnyLogic 7.1. Please use
setSpeed(double, SpeedUnits) instead 
void 
stop()
Stops movement, if any.

double 
timeToArrival()
Returns the time to arrival to the target location in continuous space, in modeltime units.

addConnection_xjal, agentInfo, connectTo, copyToAndDestroyOnSpaceTypeChange_xjal, deliver, deliver, disconnectFrom, disconnectFromAll, getConnectedAgent, getConnections, getConnectionsNumber, getEnvironment, getRandomConnectedAgent, getSpaceType, isConnectedTo, receive, removeConnection_xjal, restoreConnections_xjal, send, send, setEnvironment_xjal
agentsInRange, agentsInRange, distanceTo, distanceTo, distanceTo, distanceTo, getNearestAgent, getNetwork, getNetworkNode, getRouteProvider, getSpaceType, getSpeed, isAutomaticHorizontalRotation, isMoving, jumpTo, jumpTo, jumpTo, moveTo, moveTo, moveTo, moveToInTime, moveToInTime, moveToInTime, moveToInTime, moveToInTime, moveToInTime, moveToNearestAgent, moveToNearestAgent, moveToStraight, moveToStraightInTime, moveToStraightInTime, setArrivalCallback, setAutomaticHorizontalRotation, setNetwork, setNetworkNode, setNetworkNode, setRouteProvider, setSpeed, timeToArrival, updatePosition
getAnimationPosition, getAnimationX, getAnimationY, getAnimationZ, getPresentationScaleOnOwnerSpace, getSpace, isAnimationVisible_xjal, setSpace
getAgent, next_xjal, onDestroy, onExtensionRemoved, priority, setNext_xjal, supportsInterface_xjal
void setNetworkNode(Attractor attractor)
attractor
 the attractorvoid stop()
stop
in interface ExtAgentWithSpatialMetrics
void moveTo(double x, double y, double z)
x
 the x coordinate of the target locationy
 the y coordinate of the target locationz
 the z coordinate of the target locationvoid moveTo(double x, double y, Path2D path)
x
 the x coordinate of the target locationy
 the y coordinate of the target locationpath
 the polyline along which the agent will movevoid moveTo(Attractor attractor)
attractor
 the attractor.void moveToInTime(double x, double y, double z, double tripTime)
tripTime
model time units.x
 the x coordinate of the target locationy
 the y coordinate of the target locationz
 the z coordinate of the target locationtripTime
 the time of the movement tripvoid moveToInTime(double x, double y, double z, double tripTime, TimeUnits units)
tripTime
model time units.x
 the x coordinate of the target locationy
 the y coordinate of the target locationz
 the z coordinate of the target locationtripTime
 the time of the movement tripunits
 the time unitsvoid moveToInTime(Attractor attractor, double tripTime)
tripTime
model time units.attractor
 the attractor.tripTime
 the time of the movement tripvoid moveToInTime(Attractor attractor, double tripTime, TimeUnits units)
tripTime
model time units.attractor
 the attractor.tripTime
 the time of the movement tripunits
 the time unitsvoid moveToInTime(double x, double y, Path2D path, double tripTime)
x
 the x coordinate of the target locationy
 the y coordinate of the target locationpath
 the polyline along which the agent will movetripTime
 the time of the movement tripvoid moveToInTime(double x, double y, Path2D path, double tripTime, TimeUnits units)
x
 the x coordinate of the target locationy
 the y coordinate of the target locationpath
 the polyline along which the agent will movetripTime
 the time of the movement tripunits
 the time unitsvoid moveTo(Point location, Path3D path)
location
 the target locationpath
 the polyline along which the agent will movevoid moveToInTime(Point location, Path3D path, double tripTime)
location
 the target locationpath
 the polyline along which the agent will movetripTime
 the time of the movement tripvoid moveToInTime(Point location, Path3D path, double tripTime, TimeUnits units)
location
 the target locationpath
 the polyline along which the agent will movetripTime
 the time of the movement tripunits
 the time unitsvoid moveTo(double x, double y, double z, Path3D path)
x
 the x coordinate of the target locationy
 the y coordinate of the target locationz
 the z coordinate of the target locationpath
 the polyline along which the agent will movevoid moveToInTime(double x, double y, double z, Path3D path, double tripTime)
x
 the x coordinate of the target locationy
 the y coordinate of the target locationz
 the z coordinate of the target locationpath
 the polyline along which the agent will movetripTime
 the time of the movement tripvoid moveToInTime(double x, double y, double z, Path3D path, double tripTime, TimeUnits units)
x
 the x coordinate of the target locationy
 the y coordinate of the target locationz
 the z coordinate of the target locationpath
 the polyline along which the agent will movetripTime
 the time of the movement tripunits
 the time unitsvoid jumpTo(double x, double y, double z)
x
 the x coordinate of the new locationy
 the y coordinate of the new locationz
 the z coordinate of the new locationvoid moveToStraight(double x, double y, double z)
x
 the x coordinate of the target locationy
 the y coordinate of the target locationz
 the z coordinate of the target locationvoid moveToStraightInTime(double x, double y, double z, double tripTime)
x
 the x coordinate of the target locationy
 the y coordinate of the target locationz
 the z coordinate of the target locationtripTime
 the time of the movement tripvoid moveToStraightInTime(double x, double y, double z, double tripTime, TimeUnits units)
x
 the x coordinate of the target locationy
 the y coordinate of the target locationz
 the z coordinate of the target locationtripTime
 the time of the movement tripunits
 the time unitsvoid setAutomaticVerticalRotation(boolean yes)
ExtAgentWithSpatialMetrics.isAutomaticHorizontalRotation()
is false
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)Agent.setVerticalRotation(double)
boolean isAutomaticVerticalRotation()
true
if agent is set to be rotated (in vertical direction,
along Zaxis) during movement in 3D, false
otherwise.ExtAgentWithSpatialMetrics.isAutomaticHorizontalRotation()
is false
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)setAutomaticVerticalRotation(boolean)
double getTargetX()
getTargetX
in interface ExtAgentWithSpatialMetrics
double getTargetY()
getTargetY
in interface ExtAgentWithSpatialMetrics
double getTargetZ()
double distanceTo(Agent other)
distanceTo
in interface ExtAgentWithSpatialMetrics
other
 another agentdouble distanceToSq(Agent other)
distanceTo(Agent)
)other
 another agentdouble distanceTo(double x, double y)
distanceTo
in interface ExtAgentWithSpatialMetrics
x
 the x coordinate of the pointy
 the y coordinate of the pointdouble distanceToSq(double x, double y)
distanceTo(double, double)
)x
 the x coordinate of the pointy
 the y coordinate of the pointdouble distanceTo(double x, double y, double z)
x
 the x coordinate of the pointy
 the y coordinate of the pointz
 the z coordinate of the pointdouble distanceTo(double x, double y, double z, LengthUnits units)
x
 the x coordinate of the pointy
 the y coordinate of the pointz
 the z coordinate of the pointdouble distanceToSq(double x, double y, double z)
distanceTo(double, double, double)
)x
 the x coordinate of the pointy
 the y coordinate of the pointz
 the z coordinate of the point@Deprecated void setVelocity(double v)
setSpeed(double, SpeedUnits)
insteadsetVelocity
in interface ExtAgentWithSpatialMetrics
v
 the new speed@Deprecated double getVelocity()
#getSpeed(double, SpeedUnits)
insteadgetVelocity
in interface ExtAgentWithSpatialMetrics
void setSpeed(double s, SpeedUnits units)
setSpeed
in interface ExtAgentWithSpatialMetrics
v
 the new speedunits
 the speed unitsdouble getSpeed(SpeedUnits units)
getSpeed
in interface ExtAgentWithSpatialMetrics
units
 the speed unitsdouble timeToArrival()
timeToArrival
in interface ExtAgentWithSpatialMetrics
Copyright © AnyLogic North America, LLC. All Rights Reserved.