public class GISHullActorJ extends TypedAtomicActor
The purpose of this actor is to take a set of (x, y) points and return the points that define the convex hull around the input. The convex hull can be thought of as the region defined by a 'rubber band' placed around the original data set. It is a sort of smallest polygon surrounding the input. The ConvexHull routine is implemented in Java and is thus portable to any java-enabled system. This actor is designed to have the same functionality as the JNI basedGISHullActor
'pointFileName' is a tab delimited text file with x,y input points
'hullFileName' is the name to be given to the hull point list file
'numHullPoint' is the number of x,y pairs in the hull file
'hullFileResult' is the output hull file name (same value as the
'hullFileName' but used as a trigger for output
There is also a 'scaleFactorParameter'. This is the scale factor for an AffineTransformation of the shape created by the ConvexHull. The convexHull shape is scaled by this factor (linearly), centered on the center of the convexhull bounding rectangle. The scale by area, set the scalefactor to the square root of the area scaling factor (i.e. to make a shape with twice the area, set the scale factor to SQRT(2) )
Note: if the scaleFactorParameter is empty or not a number, no scaling will be done.
Entity.ContainedObjectsIterator
Modifier and Type | Field and Description |
---|---|
TypedIOPort |
hullFileName
'hullFileName' is the name to be given to the hull point list file
|
TypedIOPort |
hullFileResult
'hullFileResult' is the output hull file name (same value as the
'hullFileName' but used as a trigger for output
|
TypedIOPort |
numHullPoint
'numHullPoint' is the number of x,y pairs in the hull file
|
TypedIOPort |
pointFileName
'pointFileName' is a tab delimited text file with x,y input points
|
StringParameter |
scaleFactorParameter
This is the scale factor for an AffineTransformation of the shape created
by the ConvexHull.
|
_typesValid
_actorFiringListeners, _initializables, _notifyingActorFiring, _stopRequested
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
COMPLETED, NOT_READY, STOP_ITERATING
Constructor and Description |
---|
GISHullActorJ(CompositeEntity container,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
fire()
Do nothing.
|
void |
initialize()
Initialize this actor.
|
boolean |
prefire()
Return true.
|
_containedTypeConstraints, _customTypeConstraints, _defaultTypeConstraints, _fireAt, _fireAt, attributeTypeChanged, clone, clone, isBackwardTypeInferenceEnabled, newPort, typeConstraintList, typeConstraints
_actorFiring, _actorFiring, _declareDelayDependency, addActorFiringListener, addInitializable, connectionsChanged, 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, workspace
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createReceivers, getCausalityInterface, getDirector, getExecutiveDirector, getManager, inputPortList, newReceiver, outputPortList
isFireFunctional, isStrict, iterate, postfire, stop, stopFire, terminate
addInitializable, preinitialize, removeInitializable, wrapup
description, getContainer, getDisplayName, getFullName, getName, getName, setName
getDerivedLevel, getDerivedList, propagateValue
public TypedIOPort pointFileName
public TypedIOPort hullFileName
public TypedIOPort numHullPoint
public TypedIOPort hullFileResult
public StringParameter scaleFactorParameter
public GISHullActorJ(CompositeEntity container, java.lang.String name) throws NameDuplicationException, IllegalActionException
public void initialize() throws IllegalActionException
AtomicActor
initialize
in interface Initializable
initialize
in class AtomicActor<TypedIOPort>
IllegalActionException
- If a derived class throws it.public boolean prefire() throws IllegalActionException
AtomicActor
prefire
in interface Executable
prefire
in class AtomicActor<TypedIOPort>
IllegalActionException
- Not thrown in this base class.public void fire() throws IllegalActionException
AtomicActor
fire
in interface Executable
fire
in class AtomicActor<TypedIOPort>
IllegalActionException
- Not thrown in this base class.