java.lang.ObjectVisualSim.kernel.util.NamedObj
VisualSim.kernel.Entity
VisualSim.kernel.ComponentEntity
VisualSim.actor.AtomicActor
VisualSim.actor.TypedAtomicActor
VisualSim.simulators.gr.kernel.GRActor
A base class for all GR actors. This is an abstract class that is never used as a standalone actor in a VisualSim model. Subclasses of this actor include Geometry actors, Transform actors, Interaction actors, and the ViewScreen display actor.
VisualSim.simulators.gr.lib
,
Serialized FormNested Class Summary |
Nested classes inherited from class VisualSim.kernel.util.NamedObj |
VisualSim.kernel.util.NamedObj.MoMLInfo |
Field Summary |
Fields inherited from class VisualSim.actor.AtomicActor |
Block_Documentation |
Fields inherited from class VisualSim.kernel.util.NamedObj |
ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
Fields inherited from interface VisualSim.actor.Executable |
COMPLETED, NOT_READY, STOP_ITERATING |
Constructor Summary | |
GRActor(CompositeEntity container,
java.lang.String name)
Create a new GRActor in the specified container with the specified name. |
Method Summary | |
void |
fire()
Initialize the scene graph if it is not yet initialized. |
void |
initialize()
Check whether the current director is a GRDirector. |
void |
wrapup()
Reset this actor back to uninitialized state to prepare for the next execution. |
Methods inherited from class VisualSim.actor.TypedAtomicActor |
attributeTypeChanged, newPort, typeConstraintList |
Methods inherited from class VisualSim.actor.AtomicActor |
clone, connectionsChanged, getDirector, getExecutiveDirector, getManager, inputPortList, iterate, newReceiver, outputPortList, postfire, prefire, preinitialize, setContainer, stop, stopFire, terminate |
Methods inherited from class VisualSim.kernel.ComponentEntity |
getContainer, isAtomic, isOpaque, setName |
Methods inherited from class VisualSim.kernel.Entity |
connectedPortList, getAttribute, getPort, linkedRelationList, portList, removeAllPorts, uniqueName, validateSettables |
Methods inherited from class VisualSim.kernel.util.NamedObj |
addChangeListener, addDebugListener, attributeChanged, attributeList, attributeList, clone, deepContains, depthInHierarchy, description, description, event, exportMoML, exportMoML, exportMoML, exportMoML, exportMoML, getAttribute, getFullName, getModelErrorHandler, getMoMLInfo, getName, getName, handleModelError, message, removeChangeListener, removeDebugListener, requestChange, setDeferMoMLDefinitionTo, setModelErrorHandler, toplevel, toString, workspace |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface VisualSim.actor.Actor |
getDirector, getExecutiveDirector, getManager, inputPortList, newReceiver, outputPortList |
Methods inherited from interface VisualSim.actor.Executable |
iterate, postfire, prefire, preinitialize, stop, stopFire, terminate |
Constructor Detail |
public GRActor(CompositeEntity container, java.lang.String name) throws VisualSim.kernel.util.IllegalActionException, VisualSim.kernel.util.NameDuplicationException
container
- The container.name
- The name of this actor within the container.
VisualSim.kernel.util.IllegalActionException
- If this actor cannot be contained
by the proposed container (see the setContainer() method).
VisualSim.kernel.util.NameDuplicationException
- If the name coincides with
an entity already in the container.Method Detail |
public void fire() throws VisualSim.kernel.util.IllegalActionException
fire
in interface VisualSim.actor.Executable
fire
in class AtomicActor
VisualSim.kernel.util.IllegalActionException
- If an error occurs
during the scene graph initialization.public void initialize() throws VisualSim.kernel.util.IllegalActionException
initialize
in interface VisualSim.actor.Executable
initialize
in class AtomicActor
VisualSim.kernel.util.IllegalActionException
- If the current director
is not a GRDirector.public void wrapup() throws VisualSim.kernel.util.IllegalActionException
wrapup
in interface VisualSim.actor.Executable
wrapup
in class AtomicActor
VisualSim.kernel.util.IllegalActionException
- If the base class throws it.