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
_commonKeyValueTypes
COMPLETED, 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, workspace
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
exportMoML, getAttribute, getPort, isOpaque, portList
createReceivers, getCausalityInterface, getDirector, getExecutiveDirector, getManager, inputPortList, newReceiver, outputPortList
isFireFunctional, isStrict, iterate, postfire, stop, stopFire, terminate
addInitializable, initialize, removeInitializable
description, getContainer, getDisplayName, getFullName, getName, getName, setName
getDerivedLevel, getDerivedList, propagateValue
public 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
IllegalActionException
public boolean prefire() throws IllegalActionException
prefire
in interface Executable
prefire
in class AtomicPathActor
IllegalActionException
- Not thrown in this base class.public void fire() throws IllegalActionException
fire
in interface Executable
fire
in class AtomicActor<TypedIOPort>
IllegalActionException
- Not thrown in this base class.public void preinitialize() throws IllegalActionException
preinitialize
in interface Initializable
preinitialize
in class AtomicPatternActor
IllegalActionException
- Not thrown in this base class.public void wrapup() throws IllegalActionException
wrapup
in interface Initializable
wrapup
in class AtomicActor<TypedIOPort>
IllegalActionException
- Not thrown in this base class.protected void _updateKeyValueTypes()
_updateKeyValueTypes
in class AtomicPatternActor
protected void _setTypesFromConfiguration(ConfigurationProperty formatProperty) throws IllegalActionException
_setTypesFromConfiguration
in class AtomicPatternActor
IllegalActionException