org.dawb.passerelle.actors.data
Class Scalar

java.lang.Object
  extended by ptolemy.kernel.util.NamedObj
      extended by ptolemy.kernel.InstantiableNamedObj
          extended by ptolemy.kernel.Entity
              extended by ptolemy.kernel.ComponentEntity
                  extended by ptolemy.actor.AtomicActor
                      extended by ptolemy.actor.TypedAtomicActor
                          extended by com.isencia.passerelle.actor.Actor
                              extended by org.dawb.passerelle.actors.data.Scalar
All Implemented Interfaces:
com.isencia.passerelle.message.interceptor.IMessageCreator, java.io.Serializable, java.lang.Cloneable, IVariableProvider, ptolemy.actor.Actor, ptolemy.actor.Executable, ptolemy.actor.FiringsRecordable, ptolemy.actor.Initializable, ptolemy.actor.TypedActor, ptolemy.kernel.util.Changeable, ptolemy.kernel.util.Debuggable, ptolemy.kernel.util.DebugListener, ptolemy.kernel.util.Derivable, ptolemy.kernel.util.Instantiable, ptolemy.kernel.util.ModelErrorHandler, ptolemy.kernel.util.MoMLExportable, ptolemy.kernel.util.Moveable, ptolemy.kernel.util.Nameable

public class Scalar
extends com.isencia.passerelle.actor.Actor
implements IVariableProvider

Sends a scalar message once on each output port.

See Also:
Serialized Form

Field Summary
 ptolemy.data.expr.Parameter nameParam
          The value produced by this constant source.
 com.isencia.passerelle.core.Port output
          The output port used by a source to send messages with the data received from external data feeds.
 ptolemy.data.expr.Parameter valueParam
          The value produced by this constant source.
 
Fields inherited from class com.isencia.passerelle.actor.Actor
OPTIONS_FACTORY_CFG_NAME, receiverQueueCapacityParam, receiverQueueWarningSizeParam
 
Fields inherited from class ptolemy.kernel.util.NamedObj
ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
 
Fields inherited from interface ptolemy.actor.Executable
COMPLETED, NOT_READY, STOP_ITERATING
 
Constructor Summary
Scalar(ptolemy.kernel.CompositeEntity container, java.lang.String name)
          Construct a constant source with the given container and name.
 
Method Summary
 void attributeChanged(ptolemy.kernel.util.Attribute attribute)
           
 java.util.List<IVariable> getInputVariables()
          List is likely to be unmodifiable.
 java.util.List<IVariable> getOutputVariables()
          List is likely to be unmodifiable.
 
Methods inherited from class com.isencia.passerelle.actor.Actor
createErrorMessage, createMessage, createMessage, createTriggerMessage, fire, getAuditLogger, getConfigurableParameter, getConfigurableParameter, getConfigurableParameters, getFullNameButWithoutModelName, getInfo, getOptionsFactory, initialize, isFinishRequested, isFiring, isMockMode, newReceiver, postfire, prefire, preinitialize, requestFinish, sendErrorMessage, stop, stopFire, terminate, wrapup
 
Methods inherited from class ptolemy.actor.TypedAtomicActor
attributeTypeChanged, clone, newPort, typeConstraintList
 
Methods inherited from class ptolemy.actor.AtomicActor
addActorFiringListener, addInitializable, clone, connectionsChanged, getDirector, getExecutiveDirector, getFunctionDependency, getManager, inputPortList, isFireFunctional, isStrict, iterate, outputPortList, pruneDependencies, recordFiring, removeActorFiringListener, removeDependency, removeInitializable, setContainer
 
Methods inherited from class ptolemy.kernel.ComponentEntity
getContainer, instantiate, isAtomic, isOpaque, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, propagateExistence, setName
 
Methods inherited from class ptolemy.kernel.Entity
connectedPortList, connectedPorts, containedObjectsIterator, getAttribute, getPort, getPorts, linkedRelationList, linkedRelations, portList, removeAllPorts, setClassDefinition, uniqueName
 
Methods inherited from class ptolemy.kernel.InstantiableNamedObj
exportMoML, getChildren, getElementName, getParent, getPrototypeList, isClassDefinition, isWithinClassDefinition
 
Methods inherited from class ptolemy.kernel.util.NamedObj
addChangeListener, addDebugListener, attributeList, attributeList, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttributes, getChangeListeners, getClassName, getDerivedLevel, getDerivedList, getDisplayName, getFullName, getModelErrorHandler, getName, getName, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, 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, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ptolemy.actor.Actor
getDirector, getExecutiveDirector, getFunctionDependency, getManager, inputPortList, outputPortList
 
Methods inherited from interface ptolemy.actor.Executable
isFireFunctional, isStrict, iterate
 
Methods inherited from interface ptolemy.actor.Initializable
addInitializable, 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

output

public com.isencia.passerelle.core.Port output
The output port used by a source to send messages with the data received from external data feeds.


valueParam

public ptolemy.data.expr.Parameter valueParam
The value produced by this constant source. By default, it contains an StringToken with an empty string.


nameParam

public ptolemy.data.expr.Parameter nameParam
The value produced by this constant source. By default, it contains an StringToken with an empty string.

Constructor Detail

Scalar

public Scalar(ptolemy.kernel.CompositeEntity container,
              java.lang.String name)
       throws ptolemy.kernel.util.NameDuplicationException,
              ptolemy.kernel.util.IllegalActionException
Construct a constant source with the given container and name. Create the value parameter, initialize its value to the default value of an IntToken with value 1.

Parameters:
container - The container.
name - The name of this actor.
Throws:
ptolemy.kernel.util.IllegalActionException - If the entity cannot be contained by the proposed container.
ptolemy.kernel.util.NameDuplicationException - If the container already has an actor with this name.
Method Detail

attributeChanged

public void attributeChanged(ptolemy.kernel.util.Attribute attribute)
                      throws ptolemy.kernel.util.IllegalActionException
Overrides:
attributeChanged in class ptolemy.kernel.util.NamedObj
Parameters:
attribute - The attribute that changed.
Throws:
ptolemy.kernel.util.IllegalActionException

getOutputVariables

public java.util.List<IVariable> getOutputVariables()
Description copied from interface: IVariableProvider
List is likely to be unmodifiable. NOTE should be implemented as UI thread safe, can be called from anywhere.

Specified by:
getOutputVariables in interface IVariableProvider
Returns:

getInputVariables

public java.util.List<IVariable> getInputVariables()
Description copied from interface: IVariableProvider
List is likely to be unmodifiable. NOTE should be implemented as UI thread safe, can be called from anywhere.

Specified by:
getInputVariables in interface IVariableProvider
Returns: