ptolemy.actor
Interface Actor

All Superinterfaces:
Executable, Initializable, Nameable
All Known Subinterfaces:
BranchActor, CTDynamicActor, CTEventGenerator, CTStatefulActor, CTStepSizeControlActor, CTWaveformGenerator, TMActor, TypedActor, WirelessChannel
All Known Implementing Classes:
Absent, AbsoluteValue, AbstractCalInterpreter, AbstractPlaceableActor, Accumulator, Accumulator, ActorRecursion, AdaptiveMedian, AddSubtract, AnythingToDouble, ApplianceController, ApplyFilterOverArray, ApplyFunction, ApplyFunctionOverSequence, ArrayAppend, ArrayAverage, ArrayContains, ArrayElement, ArrayElementAsMatrix, ArrayExtract, ArrayLength, ArrayLevelCrossing, ArrayMaximum, ArrayMinimum, ArrayPeakSearch, ArrayPeakSearch, ArrayPlotter, ArrayPlotterXY, ArrayRemoveElement, ArraySort, ArraySum, ArrayToElements, ArrayToSequence, ArrowKeySensor, AtomicActor, AtomicActorMatcher, AtomicWirelessChannel, AudioCapture, AudioPlayer, AudioPlayer, AudioReadBuffer, AudioReader, AudioWriteBuffer, AudioWriter, Autocorrelation, Autocorrelation, Average, Average, BackDropQueue, Backtrack, BarGraph, Barrier, Barrier, Bernoulli, BinarySwitch, BitsToInt, BooleanMultiplexor, BooleanSelect, BooleanSelect, BooleanSwitch, BooleanSwitch, BooleanToAnything, Box2D, Box3D, Buffer, Buffer, BusAssembler, BusDisassembler, ButtonTime, CalInterpreter, CartesianToComplex, CartesianToPolar, Case, Case, Chop, Chop, CIActor, CipherActor, CircularSweep3D, ClassWrapper, ClipPlayer, Clock, CodegenActor, CollisionDetector, ColorFinder, ColtBeta, ColtBinomial, ColtBinomialSelector, ColtBreitWigner, ColtChiSquare, ColtExponential, ColtExponentialPower, ColtGamma, ColtHyperGeometric, ColtLogarithmic, ColtNegativeBinomial, ColtNormal, ColtPoisson, ColtPoissonSlow, ColtRandomSource, ColtStudentT, ColtVonMises, ColtZeta, CommandListener, Commutator, Commutator, Comparator, CompiledCompositeActor, ComplexAddSubtract, ComplexToCartesian, ComplexToPolar, CompositeActor, CompositeActorMatcher, ComputeHistogram, ComputeHistogram, Cone3D, Const, ContinuousClock, ContinuousIntegrator, ContinuousTransferFunction, Converter, ConvolutionalCoder, Counter, Counter, CountTrues, Course, CryptographyActor, CSPActor, CSPBuffer, CSPMultiSink, CSPMultiSource, CSPSieve, CSPSink, CSPSource, CTBaseIntegrator, CTCase, CTCompositeActor, CTCompositeActor, CTPeriodicSampler, CTRateLimiter, CTRefinement, CTTriggeredSampler, Current, CurrentTime, Cylinder3D, DatagramReader, DatagramWriter, DB, DB, DDEActor, DDESink, DDFBooleanSelect, DDFOrderedMerge, DDFSelect, DDFSingleTokenCommutator, DEActor, Default, DelayChannel, DelayLine, DelayLine, DelayStart, DeScrambler, DEThreadActor, DETransformer, Differential, Differential, DifferentialSystem, DifferentialSystem, DirectoryListing, Discard, DiscreteClock, DiscreteClock, DiscreteRandomSource, Display, DistributedLineWriter, DistributedTypedCompositeActor, Distributor, Distributor, DotProduct, DoubleFork, DoubleMatrixToJAI, DoubleReader, DoubleReader, DoubleToFix, DoubleToMatrix, DownSample, ElementsToArray, Ellipse2D, EmbeddedCActor, EmbeddedCActor.EmbeddedActor, EnabledComposite, Equals, ErasureChannel, EventButton, EventFilter, EventSource, EventSource, Exec, Exit, Expression, Expression, ExpressionReader, ExpressionToToken, ExpressionWriter, FeedBackDelay, FFT, FFT, FileReader, FileWriter, FIR, FirstOrderHold, FixToDouble, FixToFix, FrontDropQueue, FSMActor, FSMMatcher, Gaussian, Gaussian, GenericJNIActor, GetProperties, GRActor, GRActor2D, GRActor3D, GradientAdaptiveLattice, GradientAdaptiveLattice, GraphicalLocator, GRShadedShape, GRShape2D, GRTransform, GRTransform2D, HadamardCode, HammingCoder, HammingDecoder, HistogramPlotter, HTVQEncode, HuffmanBasic, HuffmanCoder, HuffmanDecoder, IFFT, IFFT, IIR, IIR, Image2D, ImageContrast, ImageDisplay, ImageDisplay, ImagePartition, ImageReader, ImageRotate, ImageSequence, ImageToJAI, ImageToJMF, ImageToString, ImageUnpartition, Inhibit, InstantaneousDialogGenerator, IntArrayToString, Integrator, Integrator, InteractiveShell, InterfaceAutomaton, Interpolator, Interpolator, IntToBits, InUnitsOf, IsPresent, IterateOverArray, IterateOverArray.IterateComposite, JAIAffineTransform, JAIBandCombine, JAIBandSelect, JAIBMPWriter, JAIBorder, JAIBoxFilter, JAIConstant, JAIConvolve, JAICrop, JAIDataConvert, JAIDCT, JAIDFT, JAIEdgeDetection, JAIIDCT, JAIIDFT, JAIImageReader, JAIInvert, JAIJPEGWriter, JAILog, JAIMagnitude, JAIMedianFilter, JAIPeriodicShift, JAIPhase, JAIPNGWriter, JAIPNMWriter, JAIPolarToComplex, JAIRotate, JAIScale, JAITIFFWriter, JAIToDoubleMatrix, JAITranslate, JAITranspose, JAIWriter, Joystick, KeyInput3D, KeyReader, KeyStoreActor, KeyWriter, LampController, Lattice, LEDMatrix, LempelZivCoder, LempelZivDecoder, LevelCrossingDetector, LevelCrossingDetector, LevelListener, LevinsonDurbin, LifeCycleManager, LimitedFiringSource, LimitedRangeChannel, Limiter, Line2D, LinearDifferenceEquationSystem, LinearDifferenceEquationSystem, LinearStateSpace, LineCoder, LineReader, LineWriter, LinkVisualizer, Listener, LiveSoundActor, LMSAdaptive, Locator, LogicalNot, LogicFunction, LongToDouble, LookupTable, MapFileStorage, MapWorker, MathFunction, MatrixJoin, MatrixSplit, MatrixToDouble, MatrixToSequence, MatrixViewer, Maximum, MaxIndex, Merge, Merge, MicaCompositeActor, MicaLeds, Minimum, MirrorComposite, MirrorComposite.MirrorCompositeContents, MobileFunction, MobileModel, ModalController, ModalModel, ModelDisplay, ModelGenerator, ModelReference, ModelView, MonitorImage, MonitorValue, MouseInput3D, MovableViewScreen3D, MovieReader, MovieViewScreen2D, MovieViewScreen3D, MovieWriter, MovingAverage, MultiCompositeActor, MultiInstanceComposite, Multiplexor, Multiplexor, MultiplyDivide, NCComponentBase, NCCompositeActor, NodeRandomizer, NondeterministicMerge, NonInterruptibleTimer, NonStrictDelay, NonStrictDisplay, NonStrictLogicFunction, NonStrictTest, NonStrictThreeBitAdder, Or, OrderedMerge, OrderedMerge, Pattern, PetriNetActor, PhaseUnwrap, PhaseUnwrap, Place, PlaySound, Plotter, PlotterBase, PoissonClock, PoissonClock, PolarToCartesian, PolarToComplex, PolyCylinder3D, PowerLossChannel, Pre, Previous, PrivateKeyReader, PSNR, PtalonActor, PtinyOSCompositeActor, PublicKeyReader, Publisher, PublisherNonStrictTest, PublisherTest, Pulse, Pulse, PythonScript, Quantizer, Queue, Queue, RaisedCosine, Ramp, Ramp, RandomSource, RandomSource, Reader, RealTimeComposite, RealTimePlotter, Receiver, RecordAssembler, RecordDisassembler, Recorder, Recorder, RecordUpdater, Rectangle2D, RectangularFigure2D, RecursiveLattice, RecursiveLattice, ReduceWorker, Refinement, Refinement, Register, Remainder, RemoveNilTokens, Repeat, Replacement, ResourcePool, ResourcePool, Rician, Rotate2D, Rotate3D, Round, RunCompositeActor, SaltAndPepper, SampleDelay, Sampler, Scale, Scale2D, Scale3D, Scrambler, SDFConverter, SDFTransformer, SecretKey, SecretKeyReader, Select, Select, Sender, Sequence, Sequence, SequencePlotter, Sequencer, Sequencer, SequenceScope, SequenceSource, SequenceToArray, SequenceToMatrix, SequentialClock, SequentialClock, SerialComm, Server, SetProperties, SetVariable, SignatureActor, SignatureSigner, SignatureVerifier, SingleEvent, SingleTokenCommutator, SingleTokenDistributor, Sink, SketchedSource, Sleep, Slicer, SliderSource, SoundActor, SoundPlayer, Source, Sphere3D, SplitReader, Starver, StateMatcher, Stop, StreamLoader, StringCompare, StringConst, StringFunction, StringIndexOf, StringLength, StringMatches, StringReplace, StringSubstring, StringToIntArray, StringToKeyValue, StringToUnsignedByteArray, StringToXML, SubMatrix, Subscriber, SubscriptionAggregator, SurgeVisualizer, Switch, Switch, SymmetricDecryption, SymmetricEncryption, Synchronizer, TerrainProperty, Test, TestExceptionHandler, TextString3D, ThresholdMonitor, ThrowException, ThrowModelError, TimedDelay, TimedPlotter, TimedScope, TimedSource, TimeGap, Timer, TMCompositeFacade, TokenToExpression, Torus3D, TransformationRule, Transformer, TransitionRefinement, Translate2D, Translate3D, TransmitPropertyTransformer, TrellisDecoder, Triangular, Triangulator, TrigFunction, TriggeredClock, TriggeredContinuousClock, TypedAtomicActor, TypedCompositeActor, TypeOpaqueCompositeActor, TypeTest, UnaryMathFunction, Undefined, Uniform, UnionDisassembler, UnionMerge, UnsignedByteArrayToString, UpSample, URLDirectoryReader, URLReader, URLToImage, VariableClock, VariableDelay, VariableFIR, VariableLattice, VariableRecursiveLattice, VariableSleep, VectorAssembler, VectorDisassembler, VideoCamera, VideoPlayer, ViewScreen2D, ViewScreen3D, VisualModelReference, ViterbiDecoder, VQDecode, WaitingTime, WallClockTime, When, Wire, Wire, WiredToWireless, WirelessComposite, WirelessToWired, Writer, X10Interface, XMLInclusion, XSLTransformer, XYPlotter, XYScope, ZeroCrossingDetector, ZeroCrossingDetector, ZeroOrderHold, ZeroOrderHold

public interface Actor
extends Executable, Nameable

An Actor is an executable entity. This interface defines the common functionality in AtomicActor and CompositeActor.

Since:
Ptolemy II 0.2
Version:
$Id: Actor.java,v 1.64 2005/07/08 19:37:34 cxh Exp $
Author:
Edward A. Lee
See Also:
CompositeActor, AtomicActor
Accepted Rating:
Green (davisj)
Proposed Rating:
Green (eal)

Field Summary
 
Fields inherited from interface ptolemy.actor.Executable
COMPLETED, NOT_READY, STOP_ITERATING
 
Method Summary
 Director getDirector()
          Return the local director, if there is one, otherwise the executive director, if there is one, otherwise null.
 Director getExecutiveDirector()
          Return the executive director, if there is one, otherwise return null.
 FunctionDependency getFunctionDependency()
          Return a representation of the function dependencies that output ports have on input ports.
 Manager getManager()
          Return the Manager, if there is one.
 java.util.List inputPortList()
          Return a list of the input ports of this actor.
 Receiver newReceiver()
          Return a new receiver of a type compatible with the executive director.
 java.util.List outputPortList()
          Return a list of the output ports of this actor.
 
Methods inherited from interface ptolemy.actor.Executable
fire, isFireFunctional, isStrict, iterate, postfire, prefire, stop, stopFire, terminate
 
Methods inherited from interface ptolemy.actor.Initializable
addInitializable, initialize, preinitialize, removeInitializable, wrapup
 
Methods inherited from interface ptolemy.kernel.util.Nameable
description, getContainer, getDisplayName, getFullName, getName, getName, setName
 

Method Detail

getDirector

Director getDirector()
Return the local director, if there is one, otherwise the executive director, if there is one, otherwise null.

Returns:
The director.

getExecutiveDirector

Director getExecutiveDirector()
Return the executive director, if there is one, otherwise return null.

Returns:
The executive director.

getFunctionDependency

FunctionDependency getFunctionDependency()
Return a representation of the function dependencies that output ports have on input ports.

Returns:
A representation of the function dependencies of the ports of this actor.
See Also:
FunctionDependency

getManager

Manager getManager()
Return the Manager, if there is one. Otherwise, return null.

Returns:
The Manager.

inputPortList

java.util.List inputPortList()
Return a list of the input ports of this actor. Note that implementations should return ports directly contained by this actor, whether they are transparent or not.

Returns:
A list of input IOPort objects.

newReceiver

Receiver newReceiver()
                     throws IllegalActionException
Return a new receiver of a type compatible with the executive director. This is the receiver that should be used by ports of this actor.

Returns:
A new object implementing the Receiver interface.
Throws:
IllegalActionException - If there is no director.

outputPortList

java.util.List outputPortList()
Return a list of the output ports of this actor. Note that implementations should return ports directly contained by this actor, whether they are transparent or not.

Returns:
A list of output IOPort objects.