E
- type of agent extension to delegate to. If you are creating new extension based on 'Entity', please
set the type to ExtEntity
@Deprecated @AnyLogicInternalAPI public abstract class ExtEntityContinuousDelegate<E extends ExtEntity> extends ExtAgentContinuousDelegate<ExtAgentContinuous> implements ExtEntity
Modifier and Type | Field and Description |
---|---|
ExtEntity |
ee
Deprecated.
|
e
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
Constructor and Description |
---|
ExtEntityContinuousDelegate(Agent owner)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addAgentToContents(Agent entity)
Deprecated.
Adds a given agent to the contents of this agent.
|
<T extends Agent> |
agentsInRange(java.lang.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> |
agentsInRange(java.lang.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 |
java.util.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(Agent other)
Deprecated.
Calculates the distance from this agent to another one in continuous 3D space.
|
double |
distanceTo(Agent other,
LengthUnits units)
Deprecated.
Calculates the distance from this agent to another one.
|
double |
distanceTo(double x,
double y)
Deprecated.
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,
LengthUnits units)
Deprecated.
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(Point point)
Deprecated.
Calculates the distance from this agent to the point.
|
double |
distanceTo(Point point,
LengthUnits units)
Deprecated.
Calculates the distance from this agent to the point.
|
Position |
getAnimationPosition(Position out)
Deprecated.
|
double |
getAnimationX()
Deprecated.
|
double |
getAnimationY()
Deprecated.
|
double |
getAnimationZ()
Deprecated.
|
double |
getBlockEnterTime()
Deprecated.
Returns the time this agent entered its current flowchart block.
|
java.awt.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(LengthUnits units)
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(LengthUnits units)
Deprecated.
Returns the length of the agent - used by conveyors and
other blocks which require it during processing.
|
<T extends Agent> |
getNearestAgent(java.lang.Iterable<T> agents)
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(SpeedUnits units)
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(LengthUnits units)
Deprecated.
Returns the width of the agent - used by conveyors and
other blocks which require it during processing.
|
void |
highlight(boolean yes)
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(double x,
double y)
Deprecated.
Instantly moves the agent to a given location (without changes to Z-coordinate, if any).
|
void |
jumpTo(INode node,
Point location)
Deprecated.
Instantly moves the agent to a given network location.
|
void |
jumpTo(Point location)
Deprecated.
Instantly moves the agent to a given location.
|
void |
moveTo(double x,
double y)
Deprecated.
Starts movement in the direction of the given target location.
|
void |
moveTo(INode node,
Point location)
Deprecated.
Starts movement to the given network node.
|
void |
moveTo(Point location)
Deprecated.
Starts movement in the direction of the given target location.
|
void |
moveToInTime(double x,
double y,
double tripTime)
Deprecated.
Starts movement in the direction of the given target location.
|
void |
moveToInTime(double x,
double y,
double tripTime,
TimeUnits units)
Deprecated.
Starts movement in the direction of the given target location.
|
void |
moveToInTime(INode node,
Point location,
double tripTime)
Deprecated.
Starts movement to the given network node.
|
void |
moveToInTime(INode node,
Point location,
double tripTime,
TimeUnits units)
Deprecated.
Starts movement to the given network node.
|
void |
moveToInTime(Point location,
double tripTime)
Deprecated.
Starts movement in the direction of the given target location.
|
void |
moveToInTime(Point location,
double tripTime,
TimeUnits units)
Deprecated.
Starts movement in the direction of the given target location.
|
void |
moveToNearestAgent(java.lang.Iterable<? extends Agent> agents)
Deprecated.
Starts movement to the nearest agent from the given collection.
|
void |
moveToNearestAgent(java.lang.Iterable<? extends Agent> agents,
double tripTime)
Deprecated.
Starts movement to the nearest agent from the given collection.
|
void |
moveToStraight(Point location)
Deprecated.
Starts straight movement in the direction of the given target location.
|
void |
moveToStraightInTime(Point location,
double tripTime)
Deprecated.
Starts straight movement in the direction of the given target location.
|
void |
moveToStraightInTime(Point location,
double tripTime,
TimeUnits units)
Deprecated.
Starts straight movement in the direction of the given target location.
|
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.
|
boolean |
removeAgentFromContents(Agent entity)
Deprecated.
Removes the given agent from the contents of this agent.
|
Agent |
resourceUnitOfPool(Agent pool)
Deprecated.
Returns the first occurrence of resource unit of a given pool
among the seized resource units, or
null if not found. |
java.util.List<Agent> |
resourceUnits()
Deprecated.
Returns the list of resource units seized by the agent, or empty list
if there are none.
|
java.util.List<Agent> |
resourceUnitsOfPool(Agent pool)
Deprecated.
Returns resource units currently seized by this agent
from the given
ResourcePool block |
java.util.List<Agent> |
resourceUnitsOfSeize(Agent seize)
Deprecated.
Return resource units currently seized by this agent
in the given
Seize block |
void |
setArrivalCallback(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.
|
void |
setAutomaticHorizontalRotation(boolean yes)
Deprecated.
Tells agent to rotate automatically (in horizontal plane) during movements.
|
void |
setColor(java.awt.Color color)
Deprecated.
Sets the color of the item default shape.
|
void |
setFlowchartActivityType(FlowchartActivityType activityType,
FlowchartBlock block)
Deprecated.
Sets activity type info (used in e.g. logging to DB) for the given entity
|
void |
setHeight(double height)
Deprecated.
Sets the height of the agent (in meters)
|
void |
setHeight(double height,
LengthUnits units)
Deprecated.
Sets the height of the agent in the given units
|
void |
setLength(double length)
Deprecated.
Sets the length of the agent (in meters)
|
void |
setLength(double length,
LengthUnits units)
Deprecated.
Sets the length of the agent in the given units
|
void |
setNetwork(INetwork network)
Deprecated.
Sets this agent to live in the network, actual for agents in continuous space.
|
void |
setNetworkInternal(INetwork network,
INode node,
Position location)
Deprecated.
|
void |
setNetworkNode(INode node)
Deprecated.
Sets the current network location for the agent
|
void |
setNetworkNode(INode node,
Point position)
Deprecated.
Sets the current network location for the agent
|
void |
setSpace(Agent space)
Deprecated.
Sets the space for agent.
|
void |
setSpeed(double speedInMPS)
Deprecated.
Changes speed of the agent (measured in m/s).
|
void |
setSpeed(double s,
SpeedUnits units)
Deprecated.
Changes speed of the agent in continuous space
(measured in the given units).
|
void |
setVelocity(double v)
Deprecated.
Changes speed of the agent in continuous space
(measured in pixels per model-time-unit).
|
void |
setWidth(double width)
Deprecated.
Sets the width of the agent (in meters)
|
void |
setWidth(double width,
LengthUnits units)
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.
|
double |
timeToArrival(TimeUnits units)
Deprecated.
Returns the time to arrival to the target location, in time units.
|
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLevel, getRouteProvider, setLevel, setRouteProvider
getAgent, next_xjal, onDestroy, onExtensionRemoved, setNext_xjal, supportsInterface_xjal
public final ExtEntity ee
@Deprecated public ExtEntityContinuousDelegate(Agent owner)
@AnyLogicInternalAPI public void destroyEntity()
ExtEntity
destroyEntity
in interface ExtEntity
public void highlight(boolean yes)
ExtEntity
public int getId()
ExtEntity
public double getFlowchartEntryTime()
ExtEntity
Double.NaN
if this agent hasn't yet visited any flowchartgetFlowchartEntryTime
in interface ExtEntity
Double.NaN
public void addAgentToContents(Agent entity)
ExtEntity
addAgentToContents
in interface ExtEntity
entity
- the agent to addpublic boolean removeAgentFromContents(Agent entity)
ExtEntity
removeAgentFromContents
in interface ExtEntity
entity
- the agent to removetrue
if agent
was removed,
false
if this agent didn't contain the specified agent
public double getLength()
ExtEntity
public double getLength(LengthUnits units)
ExtEntity
public void setLength(double length)
ExtEntity
public void setLength(double length, LengthUnits units)
ExtEntity
public double getWidth()
ExtEntity
public double getWidth(LengthUnits units)
ExtEntity
public void setWidth(double width)
ExtEntity
public void setWidth(double width, LengthUnits units)
ExtEntity
public double getHeight()
ExtEntity
public double getHeight(LengthUnits units)
ExtEntity
public void setHeight(double height)
ExtEntity
public void setHeight(double height, LengthUnits units)
ExtEntity
public java.util.List<Agent> contents()
public java.util.List<Agent> resourceUnits()
ExtEntity
resourceUnits
in interface ExtEntity
null
public java.util.List<Agent> resourceUnitsOfSeize(Agent seize)
ExtEntity
Seize
blockresourceUnitsOfSeize
in interface ExtEntity
seize
- Seize
blockpublic java.util.List<Agent> resourceUnitsOfPool(Agent pool)
ExtEntity
ResourcePool
blockresourceUnitsOfPool
in interface ExtEntity
pool
- ResourcePool
blockpublic Agent resourceUnitOfPool(Agent pool)
ExtEntity
null
if not found.resourceUnitOfPool
in interface ExtEntity
pool
- the pool of the unit (ResourcePool block)public FlowchartBlock currentBlock()
ExtEntity
currentBlock
in interface ExtEntity
null
if the agent isn't in flowchartpublic double getBlockEnterTime()
ExtEntity
getBlockEnterTime
in interface ExtEntity
Double.NaN
if this agent isn't in the flowchartpublic void setColor(java.awt.Color color)
ExtEntity
public java.awt.Color getColor()
ExtEntity
public ShapeTopLevelPresentationGroup getDefaultAnimation()
getDefaultAnimation
in interface ExtDefaultAnimationProvider
@AnyLogicInternalAPI public ShapeTopLevelPresentationGroup createDefaultAnimation()
createDefaultAnimation
in interface ExtDefaultAnimationProvider
@AnyLogicInternalAPI public boolean onClick()
ExtDefaultAnimationProvider
onClick
in interface ExtDefaultAnimationProvider
false
here.public int priority()
AgentExtension
priority
in interface AgentExtension
priority
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
P_*
constantspublic void setSpace(Agent space)
ExtAnimationParams
setSpace
in interface ExtAnimationParams
setSpace
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
space
- the agent representing space this agent will live inpublic void stop()
ExtAgentContinuous
stop
in interface ExtAgentContinuous
stop
in interface ExtAgentWithSpatialMetrics
stop
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
public void moveTo(double x, double y)
ExtAgentWithSpatialMetrics
moveTo
in interface ExtAgentWithSpatialMetrics
moveTo
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
x
- the x coordinate of the target locationy
- the y coordinate of the target locationpublic Agent getSpace()
ExtAnimationParams
getSpace
in interface ExtAnimationParams
getSpace
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
public double getAnimationX()
getAnimationX
in interface ExtAnimationParams
getAnimationX
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
public double getAnimationY()
getAnimationY
in interface ExtAnimationParams
getAnimationY
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
public double getAnimationZ()
getAnimationZ
in interface ExtAnimationParams
getAnimationZ
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
public Position getAnimationPosition(Position out)
getAnimationPosition
in interface ExtAnimationParams
getAnimationPosition
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
public double getPresentationScaleOnOwnerSpace()
ExtAnimationParams
1.0
if space isn't defined
or agent list is emptygetPresentationScaleOnOwnerSpace
in interface ExtAnimationParams
getPresentationScaleOnOwnerSpace
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
public void moveTo(Point location)
ExtAgentWithSpatialMetrics
moveTo
in interface ExtAgentWithSpatialMetrics
moveTo
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
location
- the target locationpublic void moveToInTime(Point location, double tripTime)
ExtAgentWithSpatialMetrics
tripTime
model time units.moveToInTime
in interface ExtAgentWithSpatialMetrics
moveToInTime
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
location
- the target locationtripTime
- the time of the movement trippublic boolean isAnimationVisible_xjal()
isAnimationVisible_xjal
in interface ExtAnimationParams
isAnimationVisible_xjal
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
public void moveToInTime(Point location, double tripTime, TimeUnits units)
ExtAgentWithSpatialMetrics
tripTime
model time units.moveToInTime
in interface ExtAgentWithSpatialMetrics
moveToInTime
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
location
- the target locationtripTime
- the time of the movement tripunits
- the time unitspublic void moveToStraight(Point location)
ExtAgentWithSpatialMetrics
moveToStraight
in interface ExtAgentWithSpatialMetrics
moveToStraight
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
location
- the target locationpublic void moveToStraightInTime(Point location, double tripTime)
ExtAgentWithSpatialMetrics
tripTime
model time units.moveToStraightInTime
in interface ExtAgentWithSpatialMetrics
moveToStraightInTime
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
location
- the target locationtripTime
- the time of the movement trippublic void moveToStraightInTime(Point location, double tripTime, TimeUnits units)
ExtAgentWithSpatialMetrics
tripTime
model time units.moveToStraightInTime
in interface ExtAgentWithSpatialMetrics
moveToStraightInTime
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
location
- the target locationtripTime
- the time of the movement tripunits
- the time unitspublic void moveTo(INode node, Point location)
ExtAgentWithSpatialMetrics
moveTo
in interface ExtAgentWithSpatialMetrics
moveTo
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
node
- the network node.location
- (optional) location within node, may be null
public void moveToInTime(double x, double y, double tripTime)
ExtAgentWithSpatialMetrics
moveToInTime
in interface ExtAgentWithSpatialMetrics
moveToInTime
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
x
- the x coordinate of the target locationy
- the y coordinate of the target locationtripTime
- the time of the movement trippublic void moveToInTime(double x, double y, double tripTime, TimeUnits units)
ExtAgentWithSpatialMetrics
moveToInTime
in interface ExtAgentWithSpatialMetrics
moveToInTime
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
x
- the x coordinate of the target locationy
- the y coordinate of the target locationtripTime
- the time of the movement tripunits
- the time unitspublic void moveToInTime(INode node, Point location, double tripTime)
ExtAgentWithSpatialMetrics
tripTime
model time units.moveToInTime
in interface ExtAgentWithSpatialMetrics
moveToInTime
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
node
- the network node.location
- (optional) location within node, may be null
tripTime
- the time of the movement trippublic void moveToInTime(INode node, Point location, double tripTime, TimeUnits units)
ExtAgentWithSpatialMetrics
tripTime
model time units.moveToInTime
in interface ExtAgentWithSpatialMetrics
moveToInTime
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
node
- the network node.location
- (optional) location within node, may be null
tripTime
- the time of the movement tripunits
- the time unitspublic void jumpTo(double x, double y)
ExtAgentWithSpatialMetrics
jumpTo
in interface ExtAgentWithSpatialMetrics
jumpTo
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
x
- the x coordinate of the new locationy
- the y coordinate of the new locationpublic void jumpTo(Point location)
ExtAgentWithSpatialMetrics
jumpTo
in interface ExtAgentWithSpatialMetrics
jumpTo
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
location
- the new locationpublic void jumpTo(INode node, Point location)
ExtAgentWithSpatialMetrics
jumpTo
in interface ExtAgentWithSpatialMetrics
jumpTo
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
node
- the network node.location
- (optional) location within node, may be null
public void setArrivalCallback(ArrivalCallback arrivalCallback)
ExtAgentWithSpatialMetrics
setArrivalCallback
in interface ExtAgentWithSpatialMetrics
setArrivalCallback
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
arrivalCallback
- the listener which will be notified about agent's arrivalpublic void moveToNearestAgent(java.lang.Iterable<? extends Agent> agents)
ExtAgentWithSpatialMetrics
moveToNearestAgent
in interface ExtAgentWithSpatialMetrics
moveToNearestAgent
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
agents
- the collection of agentspublic void moveToNearestAgent(java.lang.Iterable<? extends Agent> agents, double tripTime)
ExtAgentWithSpatialMetrics
tripTime
model time units.moveToNearestAgent
in interface ExtAgentWithSpatialMetrics
moveToNearestAgent
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
agents
- the collection of agentstripTime
- the time of the movement trippublic <T extends Agent> T getNearestAgent(java.lang.Iterable<T> agents)
ExtAgentWithSpatialMetrics
getNearestAgent
in interface ExtAgentWithSpatialMetrics
getNearestAgent
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
agents
- the collection of agentsthis
one)
or null
if the collection is emptypublic <T extends Agent> java.util.List<T> agentsInRange(java.lang.Iterable<T> agents, double distance)
ExtAgentWithSpatialMetrics
distance
from this agentagentsInRange
in interface ExtAgentWithSpatialMetrics
agentsInRange
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
agents
- the collection of agentsdistance
, unsortedpublic <T extends Agent> java.util.List<T> agentsInRange(java.lang.Iterable<T> agents, double distance, LengthUnits units)
ExtAgentWithSpatialMetrics
distance
from this agentagentsInRange
in interface ExtAgentWithSpatialMetrics
agentsInRange
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
agents
- the collection of agentsdistance
, unsortedpublic void setAutomaticHorizontalRotation(boolean yes)
ExtAgentWithSpatialMetrics
setAutomaticHorizontalRotation
in interface ExtAgentWithSpatialMetrics
setAutomaticHorizontalRotation
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
yes
- true
- agent will be rotated during movement,
false
- rotation will not be changed#setRotation(double)
public boolean isAutomaticHorizontalRotation()
ExtAgentWithSpatialMetrics
true
if agent is set to be rotated (in horizontal
plane) during movement, false
otherwiseisAutomaticHorizontalRotation
in interface ExtAgentWithSpatialMetrics
isAutomaticHorizontalRotation
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
true
if agent is set to be rotated during movementExtAgentWithSpatialMetrics.setAutomaticHorizontalRotation(boolean)
public double getTargetX()
ExtAgentContinuous
getTargetX
in interface ExtAgentContinuous
getTargetX
in interface ExtAgentWithSpatialMetrics
getTargetX
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
public double getTargetY()
ExtAgentContinuous
getTargetY
in interface ExtAgentContinuous
getTargetY
in interface ExtAgentWithSpatialMetrics
getTargetY
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
public double distanceTo(Agent other)
ExtAgentContinuous
distanceTo
in interface ExtAgentContinuous
distanceTo
in interface ExtAgentWithSpatialMetrics
distanceTo
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
other
- another agentpublic double distanceTo(Agent other, LengthUnits units)
ExtAgentWithSpatialMetrics
distanceTo
in interface ExtAgentWithSpatialMetrics
distanceTo
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
other
- another agentunits
- the units of lengthpublic double distanceTo(Point point)
ExtAgentWithSpatialMetrics
distanceTo
in interface ExtAgentWithSpatialMetrics
distanceTo
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
public double distanceTo(Point point, LengthUnits units)
ExtAgentWithSpatialMetrics
distanceTo
in interface ExtAgentWithSpatialMetrics
distanceTo
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
units
- the units of lengthpublic double distanceTo(double x, double y)
ExtAgentContinuous
distanceTo
in interface ExtAgentContinuous
distanceTo
in interface ExtAgentWithSpatialMetrics
distanceTo
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
x
- the x coordinate of the pointy
- the y coordinate of the pointpublic double distanceTo(double x, double y, LengthUnits units)
ExtAgentWithSpatialMetrics
distanceTo
in interface ExtAgentWithSpatialMetrics
distanceTo
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
x
- the x coordinate of the pointy
- the y coordinate of the pointunits
- the units of lengthspublic boolean isMoving()
ExtAgentWithSpatialMetrics
isMoving
in interface ExtAgentWithSpatialMetrics
isMoving
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
true
if the agent is moving, false
otherwisepublic void setVelocity(double v)
ExtAgentContinuous
setVelocity
in interface ExtAgentContinuous
setVelocity
in interface ExtAgentWithSpatialMetrics
setVelocity
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
v
- the new speedpublic double getVelocity()
ExtAgentContinuous
getVelocity
in interface ExtAgentContinuous
getVelocity
in interface ExtAgentWithSpatialMetrics
getVelocity
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
public void setSpeed(double speedInMPS)
ExtAgentWithSpatialMetrics
setSpeed
in interface ExtAgentWithSpatialMetrics
setSpeed
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
public void setSpeed(double s, SpeedUnits units)
ExtAgentContinuous
setSpeed
in interface ExtAgentContinuous
setSpeed
in interface ExtAgentWithSpatialMetrics
setSpeed
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
s
- the new speedunits
- the speed unitspublic double getSpeed()
ExtAgentWithSpatialMetrics
getSpeed
in interface ExtAgentWithSpatialMetrics
getSpeed
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
public double getSpeed(SpeedUnits units)
ExtAgentContinuous
getSpeed
in interface ExtAgentContinuous
getSpeed
in interface ExtAgentWithSpatialMetrics
getSpeed
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
units
- the speed unitspublic double timeToArrival()
ExtAgentContinuous
timeToArrival
in interface ExtAgentContinuous
timeToArrival
in interface ExtAgentWithSpatialMetrics
timeToArrival
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
public double timeToArrival(TimeUnits units)
ExtAgentWithSpatialMetrics
timeToArrival
in interface ExtAgentWithSpatialMetrics
timeToArrival
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
public void updatePosition()
ExtAgentWithSpatialMetrics
updatePosition
in interface ExtAgentWithSpatialMetrics
updatePosition
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
public INetwork getNetwork()
ExtAgentWithSpatialMetrics
getNetwork
in interface ExtAgentWithSpatialMetrics
getNetwork
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
public void setNetwork(INetwork network)
ExtAgentWithSpatialMetrics
setNetwork
in interface ExtAgentWithSpatialMetrics
setNetwork
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
network
- the network this agent will live inpublic void setNetworkInternal(INetwork network, INode node, Position location)
setNetworkInternal
in interface ExtAgentWithSpatialMetrics
setNetworkInternal
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
public INode getNetworkNode()
ExtAgentWithSpatialMetrics
getNetworkNode
in interface ExtAgentWithSpatialMetrics
getNetworkNode
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
public void setNetworkNode(INode node, Point position)
ExtAgentWithSpatialMetrics
setNetworkNode
in interface ExtAgentWithSpatialMetrics
setNetworkNode
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
node
- the network nodeposition
- (optional) location within node, may be null
public void setNetworkNode(INode node)
ExtAgentWithSpatialMetrics
setNetworkNode
in interface ExtAgentWithSpatialMetrics
setNetworkNode
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
node
- the network nodepublic SpaceType getSpaceType()
ExtAgentInteractive
SPACE_CONTINUOUS, SPACE_DISCRETE, SPACE_GIS, SPACE_NONE
getSpaceType
in interface ExtAgentInteractive
getSpaceType
in interface ExtAgentWithSpatialMetrics
getSpaceType
in class ExtAgentContinuousDelegate<ExtAgentContinuous>
SPACE_CONTINUOUS, SPACE_DISCRETE, SPACE_GIS, SPACE_NONE
public void setFlowchartActivityType(FlowchartActivityType activityType, FlowchartBlock block)
ExtEntity
setFlowchartActivityType
in interface ExtEntity
FlowchartActivityType
Copyright © AnyLogic North America, LLC. All Rights Reserved.