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_commonKeyValueTypesCOMPLETED, 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, 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 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 AtomicPatternActorattribute - 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 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 AtomicPatternActorIllegalActionExceptionprotected java.util.Set<Inequality> _customTypeConstraints()
_customTypeConstraints in class TypedAtomicActorprotected java.util.Set<Inequality> _defaultTypeConstraints()
_defaultTypeConstraints in class TypedAtomicActor