public class GDALTranslateActor extends TypedAtomicActor
This actor provides translation capabilities provided through the GDAL GIS library. It attempts to find the translated file in the kepler file cache before doing the translation. If the file is found, the translation is not performed but the cached file is passed on. The file is cached by it's filename (minus the extension after the '.') and the output format so the cached result can be read from the cache with a tuple like {outputFilename.substring(0, outputFilename.lastIndexOf(".")), outputFormat}.
Note that the 'cache options' parameter has a choice of 'no cache'. This option will not only not store files in the cache, but it will also ignore previously stored cache items. It can thus be used to force a new calculation even if the item was previousl cached (Dan Higgins)
Entity.ContainedObjectsIterator| Modifier and Type | Field and Description |
|---|---|
StringParameter |
cacheOutput
how to use the cache, if at all
|
TypedIOPort |
inputFilename
the filename of the input file
|
TypedIOPort |
outputCachename |
TypedIOPort |
outputCacheType |
TypedIOPort |
outputFilename
the filename (cacheid) of the outputfile
|
Parameter |
outputFilenameTokenProductionRate
production rate param to handle the multiport input
|
StringParameter |
outputFormat
the format of the output...ascii, raw, binary, etc
|
StringParameter |
outputType
the type of output...byte, int, etc.
|
TypedIOPort |
trigger
trigger
|
_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 |
|---|
GDALTranslateActor(CompositeEntity container,
java.lang.String name)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
connectionsChanged(Port port)
Notify this entity that the links to the specified port have been
altered.
|
void |
fire()
Fire
|
void |
initialize()
Initialize
|
boolean |
prefire()
Prefire
|
_containedTypeConstraints, _customTypeConstraints, _defaultTypeConstraints, _fireAt, _fireAt, attributeTypeChanged, clone, clone, isBackwardTypeInferenceEnabled, newPort, typeConstraintList, typeConstraints_actorFiring, _actorFiring, _declareDelayDependency, addActorFiringListener, addInitializable, createReceivers, declareDelayDependency, getCausalityInterface, getDirector, getExecutiveDirector, getManager, inputPortList, isFireFunctional, isStrict, iterate, newReceiver, outputPortList, postfire, preinitialize, pruneDependencies, recordFiring, removeActorFiringListener, removeDependency, removeInitializable, setContainer, stop, stopFire, terminate, wrapup_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, attributeChanged, 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, waitcreateReceivers, getCausalityInterface, getDirector, getExecutiveDirector, getManager, inputPortList, newReceiver, outputPortListisFireFunctional, isStrict, iterate, postfire, stop, stopFire, terminateaddInitializable, preinitialize, removeInitializable, wrapupdescription, getContainer, getDisplayName, getFullName, getName, getName, setNamegetDerivedLevel, getDerivedList, propagateValuepublic StringParameter outputType
public StringParameter outputFormat
public StringParameter cacheOutput
public TypedIOPort inputFilename
public TypedIOPort trigger
public TypedIOPort outputFilename
public TypedIOPort outputCachename
public TypedIOPort outputCacheType
public Parameter outputFilenameTokenProductionRate
public GDALTranslateActor(CompositeEntity container, java.lang.String name) throws NameDuplicationException, IllegalActionException
public void connectionsChanged(Port port)
connectionsChanged in class AtomicActor<TypedIOPort>port - public void initialize() throws IllegalActionException
initialize in interface Initializableinitialize in class AtomicActor<TypedIOPort>IllegalActionException - If a derived class throws it.public boolean prefire() throws IllegalActionException
prefire in interface Executableprefire in class AtomicActor<TypedIOPort>IllegalActionException - 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.