public interface ExtEntity extends ExtAgentWithSpatialMetrics, ExtDefaultAnimationProvider
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 |
---|---|
void |
addAgentToContents(Agent agent)
Adds a given agent to the contents of this agent.
|
java.util.List<Agent> |
contents() |
FlowchartBlock |
currentBlock()
Returns the current flowchart block this agent
is being processed in.
|
void |
destroyEntity()
Destroys the agent.
|
double |
getBlockEnterTime()
Returns the time this agent entered its current flowchart block.
|
java.awt.Color |
getColor()
Returns the color of the item default shape.
|
double |
getFlowchartEntryTime()
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()
Returns the height of the agent - used by conveyors and
other blocks which require it during processing.
|
double |
getHeight(LengthUnits units)
Returns the height of the agent - used by conveyors and
other blocks which require it during processing.
|
int |
getId()
Returns Id of agent.
|
double |
getLength()
Returns the length of the agent - used by conveyors and
other blocks which require it during processing.
|
double |
getLength(LengthUnits units)
Returns the length of the agent - used by conveyors and
other blocks which require it during processing.
|
double |
getWidth()
Returns the width of the agent - used by conveyors and
other blocks which require it during processing.
|
double |
getWidth(LengthUnits units)
Returns the width of the agent - used by conveyors and
other blocks which require it during processing.
|
default void |
highlight(boolean yes)
Turns on/off highlighting of this agent animation.
|
boolean |
removeAgentFromContents(Agent agent)
Removes the given agent from the contents of this agent.
|
Agent |
resourceUnitOfPool(Agent pool)
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()
Returns the list of resource units seized by the agent, or empty list
if there are none.
|
java.util.List<Agent> |
resourceUnitsOfPool(Agent pool)
Returns resource units currently seized by this agent
from the given
ResourcePool block |
java.util.List<Agent> |
resourceUnitsOfSeize(Agent seize)
Return resource units currently seized by this agent
in the given
Seize block |
void |
setColor(java.awt.Color color)
Sets the color of the item default shape.
|
void |
setFlowchartActivityType(FlowchartActivityType activityType,
FlowchartBlock block)
Sets activity type info (used in e.g. logging to DB) for the given entity
|
void |
setHeight(double heightInMeters)
Sets the height of the agent (in meters)
|
void |
setHeight(double height,
LengthUnits units)
Sets the height of the agent in the given units
|
void |
setLength(double lengthInMeters)
Sets the length of the agent (in meters)
|
void |
setLength(double length,
LengthUnits units)
Sets the length of the agent in the given units
|
void |
setWidth(double widthInMeters)
Sets the width of the agent (in meters)
|
void |
setWidth(double width,
LengthUnits units)
Sets the width of the agent in the given units
|
agentsInRange, agentsInRange, distanceTo, distanceTo, distanceTo, distanceTo, distanceTo, distanceTo, getLevel, getNearestAgent, getNetwork, getNetworkNode, getRouteProvider, getSpaceType, getSpeed, getSpeed, getTargetX, getTargetY, getVelocity, isAutomaticHorizontalRotation, isMoving, jumpTo, jumpTo, jumpTo, moveTo, moveTo, moveTo, moveToInTime, moveToInTime, moveToInTime, moveToInTime, moveToInTime, moveToInTime, moveToNearestAgent, moveToNearestAgent, moveToStraight, moveToStraightInTime, moveToStraightInTime, setArrivalCallback, setAutomaticHorizontalRotation, setLevel, setNetwork, setNetworkInternal, setNetworkNode, setNetworkNode, setRouteProvider, setSpeed, setSpeed, setVelocity, stop, timeToArrival, timeToArrival, updatePosition
getAnimationPosition, getAnimationX, getAnimationY, getAnimationZ, getPresentationScaleOnOwnerSpace, getSpace, isAnimationVisible_xjal, setSpace
getAgent, next_xjal, onDestroy, onExtensionRemoved, priority, setNext_xjal, supportsInterface_xjal
createDefaultAnimation, getDefaultAnimation, onClick
double getFlowchartEntryTime()
Double.NaN
if this agent hasn't yet visited any flowchartDouble.NaN
void addAgentToContents(Agent agent)
agent
- the agent to addboolean removeAgentFromContents(Agent agent)
agent
- the agent to removetrue
if agent
was removed,
false
if this agent didn't contain the specified agent
double getLength()
double getLength(LengthUnits units)
units
- units of length to be usedvoid setLength(double lengthInMeters)
length
- the length of the agent, measured in metersvoid setLength(double length, LengthUnits units)
length
- the length of the agentunits
- units of length to be useddouble getWidth()
double getWidth(LengthUnits units)
units
- units of length to be usedvoid setWidth(double widthInMeters)
width
- the width of the agent, measured in metersvoid setWidth(double width, LengthUnits units)
width
- the width of the agentunits
- units of length to be useddouble getHeight()
double getHeight(LengthUnits units)
units
- units of length to be usedvoid setHeight(double heightInMeters)
height
- the height of the agent, measured in metersvoid setHeight(double height, LengthUnits units)
height
- the height of the agentunits
- units of length to be usedjava.util.List<Agent> contents()
java.util.List<Agent> resourceUnits()
null
java.util.List<Agent> resourceUnitsOfSeize(Agent seize)
Seize
blockseize
- Seize
blockjava.util.List<Agent> resourceUnitsOfPool(Agent pool)
ResourcePool
blockpool
- ResourcePool
blockAgent resourceUnitOfPool(Agent pool)
null
if not found.pool
- the pool of the unit (ResourcePool block)FlowchartBlock currentBlock()
null
if the agent isn't in flowchartdouble getBlockEnterTime()
Double.NaN
if this agent isn't in the flowchartvoid setColor(java.awt.Color color)
color
- the new color of the default shapeint getId()
java.awt.Color getColor()
default void highlight(boolean yes)
yes
- @AnyLogicInternalAPI void destroyEntity()
@AnyLogicInternalAPI void setFlowchartActivityType(FlowchartActivityType activityType, FlowchartBlock block)
FlowchartActivityType
Copyright © AnyLogic North America, LLC. All Rights Reserved.