public class SketchedSource extends SequencePlotter implements EditListener
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) |
Entity.ContainedObjectsIterator| Modifier and Type | Field and Description |
|---|---|
Parameter |
initialTrace
The default signal to generate, prior to any user sketch.
|
Parameter |
length
The length of the output signal that will be generated.
|
TypedIOPort |
output
The output port.
|
Parameter |
periodic
An indicator of whether the signal should be periodically
repeated.
|
Parameter |
runOnModification
If true, then when the user edits the plot, if the
manager is currently idle, then run the model.
|
Parameter |
yBottom
The bottom of the Y range.
|
Parameter |
yTop
The top of the Y range.
|
_connected, _xInit, _xUnit, _xValue, input, xInit, xUnitstartingDataset_base, _source, _text, automaticRescale, fillOnWrapup, legend, plot_typesValid_actorFiringListeners, _initializables, _notifyingActorFiring, _stopRequested_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKSCOMPLETED, NOT_READY, STOP_ITERATING| Constructor and Description |
|---|
SketchedSource(CompositeEntity container,
java.lang.String name)
Construct an actor with the given container and name.
|
| Modifier and Type | Method and Description |
|---|---|
protected PlotBox |
_newPlot()
Create a new plot.
|
void |
attributeChanged(Attribute attribute)
If the specified attribute is length,
then set the trace to its initial value.
|
java.lang.Object |
clone(Workspace workspace)
Clone the actor into the specified workspace.
|
void |
editDataModified(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(PortableContainer container)
Override the base class to create an initial trace.
|
void |
preinitialize()
Override the base class to not clear the plot.
|
postfire_exportMoMLContents, _getImplementation, _implementDeferredConfigurations, _isMoMLSuppressed, _propagateValue, cleanUp, configure, getConfigureSource, getConfigureText, setContainer, setDisplayName, setFrame, setName, wrapup_containedTypeConstraints, _customTypeConstraints, _defaultTypeConstraints, _fireAt, _fireAt, attributeTypeChanged, clone, isBackwardTypeInferenceEnabled, newPort, typeConstraintList, typeConstraints_actorFiring, _actorFiring, _declareDelayDependency, addActorFiringListener, addInitializable, connectionsChanged, createReceivers, declareDelayDependency, getCausalityInterface, getDirector, getExecutiveDirector, getManager, inputPortList, isFireFunctional, isStrict, iterate, newReceiver, outputPortList, prefire, pruneDependencies, recordFiring, removeActorFiringListener, removeDependency, removeInitializable, stop, stopFire, terminate_adjustDeferrals, _checkContainer, _getContainedObject, _propagateExistence, getContainer, instantiate, isAtomic, isOpaque, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, propagateExistence_addPort, _description, _removePort, _validateSettables, connectedPortList, connectedPorts, containedObjectsIterator, getAttribute, getPort, getPorts, linkedRelationList, linkedRelations, portList, removeAllPorts, setClassDefinition, uniqueName_setParent, exportMoML, getChildren, getElementName, getParent, getPrototypeList, isClassDefinition, isWithinClassDefinition_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _executeChangeRequests, _getIndentPrefix, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _removeAttribute, _splitName, _stripNumericSuffix, addChangeListener, addDebugListener, addHierarchyListener, attributeDeleted, attributeList, attributeList, decorators, 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, notifyOfNameChange, propagateValue, propagateValues, removeAttribute, removeChangeListener, removeDebugListener, removeHierarchyListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, validateSettables, workspaceequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateReceivers, getCausalityInterface, getDirector, getExecutiveDirector, getManager, inputPortList, newReceiver, outputPortListisFireFunctional, isStrict, iterate, prefire, stop, stopFire, terminateaddInitializable, removeInitializabledescription, getContainer, getDisplayName, getFullName, getName, getNamegetDerivedLevel, getDerivedList, propagateValuepublic Parameter initialTrace
public Parameter length
public TypedIOPort output
public Parameter periodic
public Parameter runOnModification
public Parameter yBottom
public Parameter yTop
public SketchedSource(CompositeEntity container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container - The container.name - The name of this actor.IllegalActionException - If the actor cannot be contained
by the proposed container.NameDuplicationException - If the container already has an
actor with this name.public void attributeChanged(Attribute attribute) throws IllegalActionException
attributeChanged in class SequencePlotterattribute - The attribute that changed.IllegalActionException - If the specified attribute
is length and its value is not positive.public java.lang.Object clone(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.NamedObj.exportMoML(Writer, int, String),
NamedObj.setDeferringChangeRequests(boolean)public void editDataModified(EditablePlot source, int dataset)
editDataModified in interface EditListenersource - The plot containing the modified data.dataset - The data set that has been modified.public void fire()
throws IllegalActionException
fire in interface Executablefire in class AtomicActor<TypedIOPort>IllegalActionException - If there is no director, or
if the base class throws it.public void initialize()
throws IllegalActionException
initialize in interface Initializableinitialize in class SequencePlotterIllegalActionException - If the parent class throws it.public void place(PortableContainer container)
place in interface PortablePlaceableplace in class PlotterBasecontainer - The container into which to place the plot.public void preinitialize()
throws IllegalActionException
preinitialize in interface Initializablepreinitialize in class PlotterBaseIllegalActionException - If triggered by creating receivers.AtomicActor.initialize()protected PlotBox _newPlot()
_newPlot in class PlotterBase