|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.kernel.util.NamedObj
ptolemy.kernel.InstantiableNamedObj
ptolemy.kernel.Entity
ptolemy.kernel.ComponentEntity
ptolemy.actor.AtomicActor
ptolemy.actor.TypedAtomicActor
ptolemy.actor.kiel.KielerCombine
public class KielerCombine
KielerCombine Actor for SyncCharts Simulation within Ptolemy II.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ptolemy.kernel.Entity |
---|
ptolemy.kernel.Entity.ContainedObjectsIterator |
Field Summary | |
---|---|
protected int |
_ADD
|
protected int |
_AND
|
protected int |
_CONST
|
protected int |
_MAX
|
protected int |
_MIN
|
protected int |
_MULT
|
protected int |
_NONE
|
protected int |
_OR
|
ptolemy.kernel.util.StringAttribute |
function
The function to compute a combine operation on signals. |
ptolemy.actor.TypedIOPort |
input
This is a multiport for input (known) signals. |
ptolemy.actor.TypedIOPort |
output
Output a signal here iff any connected input signal is known. |
ptolemy.actor.TypedIOPort |
value
Output a resulting This is a constant value of "1", always. |
Fields inherited from class ptolemy.actor.AtomicActor |
---|
_actorFiringListeners, _initializables, _notifyingActorFiring, _stopRequested |
Fields inherited from class ptolemy.kernel.util.NamedObj |
---|
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
Fields inherited from interface ptolemy.actor.Executable |
---|
COMPLETED, NOT_READY, STOP_ITERATING |
Constructor Summary | |
---|---|
KielerCombine(ptolemy.kernel.CompositeEntity container,
String name)
Construct an actor with the given container and name. |
Method Summary | |
---|---|
protected int |
_updateFunction(int in,
int old)
Calculate the function on the given arguments. |
void |
attributeChanged(ptolemy.kernel.util.Attribute attribute)
Override the base class to determine which function is being specified. |
void |
fire()
Collect the integer tokens of all available inputs and combine them using the combine function. |
void |
initialize()
Set the RailwayInterface and open a TCP connection to the Model Railway interface program w/ the given host and port parameters. |
boolean |
isStrict()
This actor must be *NON-strict* because it must not wait for more than one input within an SR director iteration. |
boolean |
postfire()
|
boolean |
prefire()
|
void |
wrapup()
Terminate the TCP connection of the Model Railway interface. |
Methods inherited from class ptolemy.actor.TypedAtomicActor |
---|
_addPort, _fireAt, _fireAt, attributeTypeChanged, clone, newPort, typeConstraintList, typeConstraints |
Methods inherited from class ptolemy.actor.AtomicActor |
---|
_actorFiring, _actorFiring, addActorFiringListener, addInitializable, clone, connectionsChanged, createReceivers, declareDelayDependency, getCausalityInterface, getDirector, getExecutiveDirector, getManager, inputPortList, isFireFunctional, iterate, newReceiver, outputPortList, preinitialize, pruneDependencies, recordFiring, removeActorFiringListener, removeDependency, removeInitializable, setContainer, stop, stopFire, terminate |
Methods inherited from class ptolemy.kernel.ComponentEntity |
---|
_adjustDeferrals, _checkContainer, _getContainedObject, _propagateExistence, getContainer, instantiate, isAtomic, isOpaque, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, propagateExistence, setName |
Methods inherited from class ptolemy.kernel.Entity |
---|
_description, _exportMoMLContents, _removePort, _validateSettables, connectedPortList, connectedPorts, containedObjectsIterator, getAttribute, getPort, getPorts, linkedRelationList, linkedRelations, portList, removeAllPorts, setClassDefinition, uniqueName |
Methods inherited from class ptolemy.kernel.InstantiableNamedObj |
---|
_setParent, exportMoML, getChildren, getElementName, getParent, getPrototypeList, isClassDefinition, isWithinClassDefinition |
Methods inherited from class ptolemy.kernel.util.NamedObj |
---|
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _debug, _debug, _debug, _debug, _debug, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _propagateValue, _recordDecoratedAttributes, _removeAttribute, _splitName, _stripNumericSuffix, addChangeListener, addDebugListener, attributeList, attributeList, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttributes, getChangeListeners, getClassName, getDecoratorAttribute, getDecoratorAttributes, getDerivedLevel, getDerivedList, getDisplayName, getFullName, getModelErrorHandler, getName, getName, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, lazyContainedObjectsIterator, message, propagateValue, propagateValues, removeChangeListener, removeDebugListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, validateSettables, workspace |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface ptolemy.actor.Actor |
---|
createReceivers, getCausalityInterface, getDirector, getExecutiveDirector, getManager, inputPortList, newReceiver, outputPortList |
Methods inherited from interface ptolemy.actor.Executable |
---|
isFireFunctional, iterate, stop, stopFire, terminate |
Methods inherited from interface ptolemy.actor.Initializable |
---|
addInitializable, preinitialize, removeInitializable |
Methods inherited from interface ptolemy.kernel.util.Nameable |
---|
description, getContainer, getDisplayName, getFullName, getName, getName, setName |
Methods inherited from interface ptolemy.kernel.util.Derivable |
---|
getDerivedLevel, getDerivedList, propagateValue |
Field Detail |
---|
public ptolemy.kernel.util.StringAttribute function
public ptolemy.actor.TypedIOPort input
public ptolemy.actor.TypedIOPort output
public ptolemy.actor.TypedIOPort value
protected final int _NONE
protected final int _ADD
protected final int _MULT
protected final int _MAX
protected final int _MIN
protected final int _OR
protected final int _AND
protected final int _CONST
Constructor Detail |
---|
public KielerCombine(ptolemy.kernel.CompositeEntity container, String name) throws ptolemy.kernel.util.NameDuplicationException, ptolemy.kernel.util.IllegalActionException
container
- The container.name
- The name of this actor.
ptolemy.kernel.util.IllegalActionException
- If the actor cannot be contained
by the proposed container.
ptolemy.kernel.util.NameDuplicationException
- If the container already has an
actor with this name.Method Detail |
---|
public void fire() throws ptolemy.kernel.util.IllegalActionException
fire
in interface ptolemy.actor.Executable
fire
in class ptolemy.actor.AtomicActor
ptolemy.kernel.util.IllegalActionException
- If calling send() or super.fire()
throws it.public boolean isStrict()
isStrict
in interface ptolemy.actor.Executable
isStrict
in class ptolemy.actor.AtomicActor
public boolean prefire() throws ptolemy.kernel.util.IllegalActionException
prefire
in interface ptolemy.actor.Executable
prefire
in class ptolemy.actor.AtomicActor
ptolemy.kernel.util.IllegalActionException
public boolean postfire() throws ptolemy.kernel.util.IllegalActionException
postfire
in interface ptolemy.actor.Executable
postfire
in class ptolemy.actor.AtomicActor
ptolemy.kernel.util.IllegalActionException
public void initialize() throws ptolemy.kernel.util.IllegalActionException
initialize
in interface ptolemy.actor.Initializable
initialize
in class ptolemy.actor.AtomicActor
ptolemy.kernel.util.IllegalActionException
- If the parent class throws it.public void wrapup() throws ptolemy.kernel.util.IllegalActionException
wrapup
in interface ptolemy.actor.Initializable
wrapup
in class ptolemy.actor.AtomicActor
ptolemy.kernel.util.IllegalActionException
- Not thrown in this base class.protected int _updateFunction(int in, int old) throws ptolemy.kernel.util.IllegalActionException
in
- The new input value. Should never be null.old
- The old result value, or null if there is none.
ptolemy.kernel.util.IllegalActionException
- If thrown by BooleanToken operations.public void attributeChanged(ptolemy.kernel.util.Attribute attribute) throws ptolemy.kernel.util.IllegalActionException
attributeChanged
in class ptolemy.kernel.util.NamedObj
attribute
- The attribute that changed.
ptolemy.kernel.util.IllegalActionException
- If the function is not recognized.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |