public class DDPDataSource extends AtomicPathActor
Entity.ContainedObjectsIterator
Modifier and Type | Field and Description |
---|---|
Parameter |
chunkSize
The chunk size for token data.
|
TypedIOPort |
data
An input token.
|
TypedIOPort |
out
Data output.
|
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 |
---|
DDPDataSource(CompositeEntity container,
java.lang.String name)
Construct a new FileDataSource in a container with a given name.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Set<Inequality> |
_customTypeConstraints()
If using the default type constraints, return the custom
type constraints from the parent class.
|
protected java.util.Set<Inequality> |
_defaultTypeConstraints()
If using the default type constraints, return the default type
constraints from the parent class.
|
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.
|
void |
attributeChanged(Attribute attribute)
React to a parameter change.
|
void |
fire()
Read the data input path and make sure it exists.
|
static ArrayToken |
getToken(java.lang.String name)
Get the token for a DDPDataSource actor.
|
void |
preinitialize()
Make sure input is either data or file, but not both.
|
void |
wrapup()
Remove any token stored for this actor.
|
getPathAsURI, prefire
_addFormats, _setFormat, clone, getDegreeOfParallelism, getDisplayRedirectDir, getExecutionClassName, getExecutionCode, getExecutionCodeType, getFormatClassName, getJars, getParaImplNames, getParameters, getPrintExeInfo
_containedTypeConstraints, _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 out
public TypedIOPort data
public DDPDataSource(CompositeEntity container, java.lang.String name) throws IllegalActionException, NameDuplicationException
public void attributeChanged(Attribute attribute) throws IllegalActionException
attributeChanged
in class AtomicPatternActor
attribute
- The attribute that changed.IllegalActionException
- If the change is not acceptable
to this container (not thrown in this base class).public static ArrayToken getToken(java.lang.String name)
name
- the full name of the DDPDataSource actor.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
protected java.util.Set<Inequality> _customTypeConstraints()
_customTypeConstraints
in class TypedAtomicActor
protected java.util.Set<Inequality> _defaultTypeConstraints()
_defaultTypeConstraints
in class TypedAtomicActor