public class EntityAnimation extends Entity implements EntityBasicAnimation
Constructor and Description |
---|
EntityAnimation(ModelAnimation owner,
java.lang.String name,
boolean showInTrace)
constructor with same parameters as in Entity
|
Modifier and Type | Method and Description |
---|---|
void |
createAnimation(java.lang.String entityTypeId,
boolean showInAnimation)
createAnimation method of free entities, with initial state "active".
|
void |
createAnimation(java.lang.String entityTypeId,
java.lang.String state,
boolean showInAnimation)
createAnimation method of free entities.
|
void |
createAnimation(java.lang.String entityTypeId,
java.lang.String state,
PositionExt pos,
boolean showInAnimation)
createAnimation method of static entities.
|
void |
disposeAnimation()
Dispose the animation of this entity
|
java.lang.String |
getAttribute(java.lang.String key) |
java.lang.String |
getState() |
void |
setAttribute(java.lang.String key,
java.lang.String value)
Set attributes
Following signs in the key are not valid :,:| they are changed to _
|
void |
setState(java.lang.String state)
Set state
|
void |
setVelocity(java.lang.String attributeKey)
Set an attribute key as velocity attribute.
|
getIdentNumber, getQueueingPriority, getQueues, getScheduledEvents, isEqual, isLarger, isLargerOrEqual, isNotEqual, isQueued, isSimProcess, isSmaller, isSmallerOrEqual, schedule, schedule, schedule, schedule, schedule, schedule, schedule, schedule, schedule, scheduleAfter, scheduleAfter, scheduleAfter, scheduleBefore, scheduleBefore, scheduleBefore, schedulePreempt, schedulePreempt, schedulePreempt, setQueueingPriority
assignReporter, cancel, getCorrespondingReportable, isCurrent, isScheduled, rename, reSchedule, reSchedule, reSchedulePreempt, scheduledNext, setCorrespondingReportable
current, currentEntity, currentEntityAll, currentEvent, currentModel, currentSimProcess, debugIsOn, debugOff, debugOn, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOn
getName, getQuotedName, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName, getQueueingPriority
public EntityAnimation(ModelAnimation owner, java.lang.String name, boolean showInTrace)
owner
- name
- showInTrace
- public void createAnimation(java.lang.String entityTypeId, boolean showInAnimation)
entityTypeId
- entitType of EntityshowInAnimation
- is shown in animationpublic void createAnimation(java.lang.String entityTypeId, java.lang.String state, boolean showInAnimation)
entityTypeId
- entitType of Entitystate
- initial stateshowInAnimation
- is shown in animationpublic void createAnimation(java.lang.String entityTypeId, java.lang.String state, PositionExt pos, boolean showInAnimation)
entityTypeId
- entitType of Entitystate
- initial statepos
- extended position (middle point, angle, direction)showInAnimation
- is shown in animationpublic void disposeAnimation()
public void setAttribute(java.lang.String key, java.lang.String value)
setAttribute
in interface EntityBasicAnimation
key
- Attribute-key, possible keys are def in EntityTypevalue
- Attribute-valuepublic void setState(java.lang.String state)
setState
in interface EntityBasicAnimation
state
- , possible states are def in EntityTypepublic void setVelocity(java.lang.String attributeKey)
attributeKey
- public java.lang.String getState()
public java.lang.String getAttribute(java.lang.String key)