public class DDPDataSink extends AtomicPathActor
Entity.ContainedObjectsIterator| Modifier and Type | Field and Description |
|---|---|
TypedIOPort |
in
The data to be written.
|
Parameter |
mergeMultiPartOutputs
If true, merge multiple output files into a single file.
|
TypedIOPort |
out
After data has been written, this port outputs the path.
|
path_FORMAT_TYPE_CATEGORY, _formatProperties, _formatTypeStr, _keyType, _valueType, degreeOfParallelism, formatType, jars, keyValueTypes_typesValid_actorFiringListeners, _initializables, _notifyingActorFiring, _stopRequested_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS_commonKeyValueTypesCOMPLETED, NOT_READY, STOP_ITERATING| Constructor and Description |
|---|
DDPDataSink(CompositeEntity container,
java.lang.String name)
Construct a new FileDataSink in a container with a given name.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
_setTypesFromConfiguration(ConfigurationProperty formatProperty)
Set the key and value types from the types in the configuration property.
|
protected void |
_updateKeyValueTypes()
Update the key and value types.
|
static void |
addTokens(java.lang.String sinkActorName,
java.util.List<Token> tokenList)
Set a list of tokens for a specific DDPDataSink actor.
|
void |
fire()
Write the token in the path parameter to the out port.
|
boolean |
prefire()
Update the path parameter if connected.
|
void |
preinitialize()
Make sure output is either data or file, but not both.
|
void |
wrapup()
Remove any tokens stored for this actor.
|
getPathAsURI_addFormats, _setFormat, attributeChanged, clone, getDegreeOfParallelism, getDisplayRedirectDir, getExecutionClassName, getExecutionCode, getExecutionCodeType, getFormatClassName, getJars, getParaImplNames, getParameters, getPrintExeInfo_containedTypeConstraints, _customTypeConstraints, _defaultTypeConstraints, _fireAt, _fireAt, attributeTypeChanged, clone, isBackwardTypeInferenceEnabled, newPort, typeConstraintList, typeConstraints_actorFiring, _actorFiring, _declareDelayDependency, addActorFiringListener, addInitializable, connectionsChanged, createReceivers, declareDelayDependency, getCausalityInterface, getDirector, getExecutiveDirector, getManager, initialize, inputPortList, isFireFunctional, isStrict, iterate, newReceiver, outputPortList, postfire, pruneDependencies, recordFiring, removeActorFiringListener, removeDependency, removeInitializable, setContainer, stop, stopFire, terminate_adjustDeferrals, _checkContainer, _getContainedObject, _propagateExistence, getContainer, instantiate, isAtomic, isOpaque, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, propagateExistence, setName_addPort, _description, _exportMoMLContents, _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, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateValue, _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, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, validateSettables, workspaceequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitexportMoML, getAttribute, getPort, isOpaque, portListcreateReceivers, getCausalityInterface, getDirector, getExecutiveDirector, getManager, inputPortList, newReceiver, outputPortListisFireFunctional, isStrict, iterate, postfire, stop, stopFire, terminateaddInitializable, initialize, removeInitializabledescription, getContainer, getDisplayName, getFullName, getName, getName, setNamegetDerivedLevel, getDerivedList, propagateValuepublic TypedIOPort in
public TypedIOPort out
public Parameter mergeMultiPartOutputs
public DDPDataSink(CompositeEntity container, java.lang.String name) throws IllegalActionException, NameDuplicationException
public static void addTokens(java.lang.String sinkActorName, java.util.List<Token> tokenList) throws IllegalActionException
IllegalActionExceptionpublic boolean prefire() throws IllegalActionException
prefire in interface Executableprefire in class AtomicPathActorIllegalActionException - Not thrown in this base class.public void fire() throws IllegalActionException
fire in interface Executablefire in class AtomicActor<TypedIOPort>IllegalActionException - Not thrown in this base class.public void preinitialize() throws IllegalActionException
preinitialize in interface Initializablepreinitialize in class AtomicPatternActorIllegalActionException - Not thrown in this base class.public void wrapup() throws IllegalActionException
wrapup in interface Initializablewrapup in class AtomicActor<TypedIOPort>IllegalActionException - Not thrown in this base class.protected void _updateKeyValueTypes()
_updateKeyValueTypes in class AtomicPatternActorprotected void _setTypesFromConfiguration(ConfigurationProperty formatProperty) throws IllegalActionException
_setTypesFromConfiguration in class AtomicPatternActorIllegalActionException