|
||||||||||
| 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.lib.gui.PlotterBase
ptolemy.actor.lib.gui.Plotter
ptolemy.actor.lib.gui.SequencePlotter
ptolemy.actor.lib.gui.SketchedSource
This actor is a plotter that also produces as its output a signal that has been sketched by the user on the screen. The length parameter specifies the number of samples in the sketched signal. The periodic parameter, if true, specifies that the signal should be repeated. If this parameter is false, then the sketched signal is produced exactly once, at the beginning of the execution of the model. If periodic is true and the sketch is modified during execution of the model, then the modification appears in the next cycle after the modification has been completed. In other words, the change does not appear mid-cycle.
This actor is also a plotter, and will plot the input signals on the same plot as the sketched signal. It can be used in a feedback loop where the output affects the input. The first batch of outputs is produced in the initialize() method, so it can be put in a feedback loop in a dataflow model.
| Red (vogel) |
| Yellow (eal) |
| Nested Class Summary |
| Nested classes inherited from class ptolemy.actor.lib.gui.PlotterBase |
PlotterBase.PlotterPlotFrame, PlotterBase.PlotWindowTableau |
| Nested classes inherited from class ptolemy.kernel.Entity |
ptolemy.kernel.Entity.ContainedObjectsIterator |
| Field Summary | |
ptolemy.data.expr.Parameter |
initialTrace
The default signal to generate, prior to any user sketch. |
ptolemy.data.expr.Parameter |
length
The length of the output signal that will be generated. |
ptolemy.actor.TypedIOPort |
output
The output port. |
ptolemy.data.expr.Parameter |
periodic
An indicator of whether the signal should be periodically repeated. |
ptolemy.data.expr.Parameter |
runOnModification
If true, then when the user edits the plot, if the manager is currently idle, then run the model. |
ptolemy.data.expr.Parameter |
yBottom
The bottom of the Y range. |
ptolemy.data.expr.Parameter |
yTop
The top of the Y range. |
| Fields inherited from class ptolemy.actor.lib.gui.SequencePlotter |
_xInit, _xUnit, _xValue, input, xInit, xUnit |
| Fields inherited from class ptolemy.actor.lib.gui.Plotter |
startingDataset |
| Fields inherited from class ptolemy.actor.lib.gui.PlotterBase |
_base, _container, _frame, _plotSize, _source, _text, _windowProperties, fillOnWrapup, legend, plot |
| Fields inherited from class ptolemy.actor.AtomicActor |
_stopRequested |
| Fields inherited from class ptolemy.kernel.util.NamedObj |
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
| Fields inherited from interface ptolemy.actor.Executable |
COMPLETED, NOT_READY, STOP_ITERATING |
| Constructor Summary | |
SketchedSource(ptolemy.kernel.CompositeEntity container,
java.lang.String name)
Construct an actor with the given container and name. |
|
| Method Summary | |
protected ptolemy.plot.PlotBox |
_newPlot()
Create a new plot. |
void |
attributeChanged(ptolemy.kernel.util.Attribute attribute)
If the specified attribute is length, then set the trace to its initial value. |
java.lang.Object |
clone(ptolemy.kernel.util.Workspace workspace)
Clone the actor into the specified workspace. |
void |
editDataModified(ptolemy.plot.EditablePlot source,
int dataset)
React to the fact that data in the specified plot has been modified by a user edit action by recording the data. |
void |
fire()
Produce one data sample from the sketched signal on the output port. |
void |
initialize()
Override the base class to read data from the plot and to produce all the data on the output. |
void |
place(java.awt.Container container)
Override the base class to create an initial trace. |
void |
preinitialize()
Override the base class to not clear the plot. |
| Methods inherited from class ptolemy.actor.lib.gui.SequencePlotter |
postfire |
| Methods inherited from class ptolemy.actor.lib.gui.PlotterBase |
_exportMoMLContents, _implementDeferredConfigurations, _propagateValue, configure, getConfigureSource, getConfigureText, setContainer, wrapup |
| Methods inherited from class ptolemy.actor.TypedAtomicActor |
_addPort, attributeTypeChanged, clone, newPort, typeConstraintList |
| Methods inherited from class ptolemy.actor.AtomicActor |
_createReceivers, connectionsChanged, getDirector, getExecutiveDirector, getFunctionDependency, getManager, inputPortList, iterate, newReceiver, outputPortList, prefire, pruneDependencies, removeDependency, stop, stopFire, terminate |
| Methods inherited from class ptolemy.kernel.ComponentEntity |
_adjustDeferrals, _checkContainer, _getContainedObject, _propagateExistence, getContainer, instantiate, isAtomic, isOpaque, propagateExistence, setName |
| Methods inherited from class ptolemy.kernel.Entity |
_description, _removePort, connectedPortList, connectedPorts, containedObjectsIterator, getAttribute, getPort, getPorts, linkedRelationList, linkedRelations, portList, removeAllPorts, setClassDefinition, uniqueName, validateSettables |
| Methods inherited from class ptolemy.kernel.InstantiableNamedObj |
_setParent, exportMoML, getChildren, getElementName, getParent, getPrototypeList, isClassDefinition |
| Methods inherited from class ptolemy.kernel.util.NamedObj |
_addAttribute, _attachText, _cloneFixAttributeFields, _debug, _debug, _debug, _debug, _debug, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _removeAttribute, _splitName, _stripNumericSuffix, addChangeListener, addDebugListener, attributeList, attributeList, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, getAttribute, getAttributes, getChangeListeners, getClassName, getDerivedLevel, getDerivedList, getFullName, getModelErrorHandler, getName, getName, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, message, propagateValue, propagateValues, removeChangeListener, removeDebugListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setModelErrorHandler, setPersistent, setSource, toplevel, toString, workspace |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ptolemy.actor.Actor |
getDirector, getExecutiveDirector, getFunctionDependency, getManager, inputPortList, newReceiver, outputPortList |
| Methods inherited from interface ptolemy.actor.Executable |
iterate, prefire, stop, stopFire, terminate |
| Methods inherited from interface ptolemy.kernel.util.Derivable |
getDerivedLevel, getDerivedList, propagateValue |
| Methods inherited from interface ptolemy.kernel.util.Nameable |
description, getFullName, getName, getName |
| Field Detail |
public ptolemy.data.expr.Parameter initialTrace
public ptolemy.data.expr.Parameter length
public ptolemy.actor.TypedIOPort output
public ptolemy.data.expr.Parameter periodic
public ptolemy.data.expr.Parameter runOnModification
public ptolemy.data.expr.Parameter yBottom
public ptolemy.data.expr.Parameter yTop
| Constructor Detail |
public SketchedSource(ptolemy.kernel.CompositeEntity container,
java.lang.String name)
throws ptolemy.kernel.util.IllegalActionException,
ptolemy.kernel.util.NameDuplicationException
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 attributeChanged(ptolemy.kernel.util.Attribute attribute)
throws ptolemy.kernel.util.IllegalActionException
attributeChanged in class SequencePlotterptolemy.kernel.util.IllegalActionException - If the specified attribute
is length and its value is not positive.
public java.lang.Object clone(ptolemy.kernel.util.Workspace workspace)
throws java.lang.CloneNotSupportedException
clone in class PlotterBaseworkspace - The workspace for the new object.
java.lang.CloneNotSupportedException - If a derived class has an
attribute that cannot be cloned.
public void editDataModified(ptolemy.plot.EditablePlot source,
int dataset)
editDataModified in interface ptolemy.plot.EditListenersource - The plot containing the modified data.dataset - The data set that has been modified.
public void fire()
throws ptolemy.kernel.util.IllegalActionException
fire in interface ptolemy.actor.Executableptolemy.kernel.util.IllegalActionException - If there is no director, or
if the base class throws it.
public void initialize()
throws ptolemy.kernel.util.IllegalActionException
initialize in interface ptolemy.actor.Executableinitialize in class SequencePlotterptolemy.kernel.util.IllegalActionException - If the parent class throws it.public void place(java.awt.Container container)
place in interface ptolemy.actor.gui.Placeableplace in class PlotterBasecontainer - The container into which to place the plot.
public void preinitialize()
throws ptolemy.kernel.util.IllegalActionException
preinitialize in interface ptolemy.actor.Executablepreinitialize in class PlotterBaseptolemy.kernel.util.IllegalActionException - If triggered by creating receivers.AtomicActor.initialize()protected ptolemy.plot.PlotBox _newPlot()
_newPlot in class PlotterBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||