ptolemy.actor
Interface Actor

All Superinterfaces:
Executable, Initializable, Nameable
All Known Subinterfaces:
BranchActor, CTDynamicActor, CTEventGenerator, CTStatefulActor, CTStepSizeControlActor, CTWaveformGenerator, GTCompositeActor, RefinementActor, RefinementActor, TMActor, TypedActor, WirelessChannel
All Known Implementing Classes:
Absent, AbsoluteValue, AbstractCalInterpreter, AbstractPlaceableActor, Accumulator, Accumulator, ActorRecursion, AdaptiveMedian, AddSubtract, AddSubtract, AnythingToDouble, ApplyFilterOverArray, ApplyFunction, ApplyFunctionOverSequence, ArrayAppend, ArrayAverage, ArrayContains, ArrayElement, ArrayElementAsMatrix, ArrayExtract, ArrayLength, ArrayLevelCrossing, ArrayMaximum, ArrayMinimum, ArrayOfRecordsExporter, ArrayOfRecordsRecorder, ArrayPeakSearch, ArrayPeakSearch, ArrayPlotter, ArrayPlotterXY, ArrayRemoveElement, ArraySort, ArraySum, ArrayToElements, ArrayToSequence, ArrowKeyProbe, ArrowKeySensor, AtomicActor, AtomicActorMatcher, AtomicWirelessChannel, AudioCapture, AudioPlayer, AudioPlayer, AudioReadBuffer, AudioReader, AudioWriteBuffer, AudioWriter, Autocorrelation, Autocorrelation, Average, Average, AverageOverTime, BackDropQueue, Backtrack, BandlimitedNoise, BarGraph, Barrier, Barrier, Bernoulli, BinarySwitch, BitsToInt, BooleanMultiplexor, BooleanSelect, BooleanSelect, BooleanSwitch, BooleanSwitch, BooleanToAnything, BoundedBufferNondeterministicDelay, BoundedBufferTimedDelay, Box2D, Box3D, Buffer, Buffer, BusAssembler, BusDisassembler, ButtonTime, CalInterpreter, CartesianToComplex, CartesianToPolar, Case, Case, Case, Chop, Chop, CIActor, CipherActor, CircularSweep3D, ClassWrapper, ClipPlayer, Clock, ClockSensor, CodegenActor, CollisionDetector, ColorFinder, ColtBeta, ColtBinomial, ColtBinomialSelector, ColtBreitWigner, ColtChiSquare, ColtExponential, ColtExponentialPower, ColtGamma, ColtHyperGeometric, ColtLogarithmic, ColtNegativeBinomial, ColtNormal, ColtPoisson, ColtPoissonSlow, ColtRandomSource, ColtStudentT, ColtVonMises, ColtZeta, Commutator, Commutator, Comparator, CompiledCompositeActor, CompiledCompositeActor, ComplexAddSubtract, ComplexToCartesian, ComplexToPolar, CompositeActor, CompositeActorMatcher, ComputeHistogram, ComputeHistogram, Concat, Cone3D, ConfigurationSelect, ConfigurationSwitch, Configurer, Configurer, Const, ContinuousClock, ContinuousIntegrator, ContinuousMerge, ContinuousTimeDelay, ContinuousTransferFunction, 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, DatabaseInsert, DatabaseManager, DatabaseQuery, DatabaseSelect, DatagramReader, DatagramWriter, DB, DB, DCT2x2dc, DCT4x4dc, DCT8x8, DDEActor, DDESink, DDFBooleanSelect, DDFOrderedMerge, DDFSelect, DDFSingleTokenCommutator, DEActor, Default, DelayChannel, DelayLine, DelayLine, DelayStart, Derivative, DeScrambler, DEThreadActor, DETransformer, Differential, Differential, DifferentialSystem, DifferentialSystem, DirectoryListing, Discard, DiscreteClock, DiscreteClock, DiscreteClock, DiscreteRandomSource, Display, DistributedLineWriter, DistributedTypedCompositeActor, Distributor, Distributor, DotProduct, DoubleFork, DoubleMatrixToJAI, DoubleReader, DoubleReader, DoubleToFix, DoubleToMatrix, DownSample, ElementsToArray, Ellipse2D, EmbeddedCActor, EmbeddedCActor.EmbeddedActor, EmbeddedCFileActor, EmbeddedCFileActor.EmbeddedFileActor, EmbeddedJavaActor, EmbeddedJavaActor.EmbeddedActor, EnabledComposite, Equals, ErasureChannel, EventButton, EventFilter, EventSource, EventSource, Exec, ExecutionTime, Exit, Expression, Expression, ExpressionReader, ExpressionToToken, ExpressionWriter, FeedBackDelay, FFT, FFT, FileReader, FileWriter, FIR, FirstOrderHold, FixComparator, FixConst, FixCounter, FixSequence, FixToDouble, FixToFix, FixToString, FixTransformer, FmvAutomaton, FmvAutomaton, FrontDropQueue, FSMActor, FSMActor, FSMMatcher, Gaussian, Gaussian, GetCausalityInterface, GetCurrentMicrostep, GetProperties, GRActor, GRActor2D, GRActor3D, GradientAdaptiveLattice, GradientAdaptiveLattice, GraphicalLocator, GRShadedShape, GRShape2D, GRTransform, GRTransform2D, HadamardCode, HammingCoder, HammingDecoder, HistogramPlotter, HTVQEncode, HuffmanBasic, HuffmanCoder, HuffmanDecoder, IDCT4x4dc, IDCT8x8, IFFT, IFFT, IIR, IIR, Image2D, ImageContrast, ImageDisplay, ImageDisplay, ImagePartition, ImageReader, ImageRotate, ImageSequence, ImageToJAI, ImageToJMF, ImageToString, ImageUnpartition, Inhibit, InstantaneousDialogGenerator, IntArrayToString, IntegerCounter, Integrator, Integrator, Integrator, InteractiveShell, InterfaceAutomaton, 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, JopReadPort, JopSerialRead, JopSerialWrite, JopWatchDog, JopWritePort, KeyInput3D, KeyInput3DProbe, KeyReader, KeyStoreActor, KeyWriter, Lattice, LazyTypedCompositeActor, LEDMatrix, LempelZivCoder, LempelZivDecoder, LevelCrossingDetector, LevelCrossingDetector, LevinsonDurbin, LifeCycleManager, LimitedFiringSource, LimitedRangeChannel, Limiter, Line2D, LinearDifferenceEquationSystem, LinearDifferenceEquationSystem, LinearStateSpace, LinearStateSpace, LineCoder, LineReader, LineWriter, LinkVisualizer, LiveSoundActor, LMSAdaptive, Locator, LogicalNot, LogicalNot, LogicFunction, LogicFunction, LongToDouble, LookupTable, MapFileStorage, MapWorker, MathFunction, MatrixJoin, MatrixSplit, MatrixToDouble, MatrixToSequence, MatrixViewer, Maximum, MaxIndex, Memory, Merge, Merge, MicaCompositeActor, MicaLeds, Minimum, MirrorComposite, MirrorComposite.MirrorCompositeContents, MobileFunction, MobileModel, ModalController, ModalController, ModalModel, ModalModel, ModalModelMatcher, ModalRefinement, ModelCombine, ModelDisplay, ModelExecutor, ModelExecutor.Wrapper, ModelGenerator, ModelReference, ModelView, MoMLGenerator, MonitorImage, MonitorValue, MouseInput3D, MovableViewScreen3D, MovieReader, MovieWriter, MovingAverage, MovingMaximum, MultiCompositeActor, MultiInstanceComposite, Multiplexor, Multiplexor, Multiplexor, Multiplier, MultiplyDivide, NCComponentBase, NCCompositeActor, NodeRandomizer, Noise, Noise, NondeterministicMerge, NondeterministicMerge.ChannelActor, NonInterruptibleTimer, NonStrictDelay, NonStrictDisplay, NonStrictLogicFunction, NonStrictTest, NonStrictThreeBitAdder, Occupants, Or, OrderedMerge, OrderedMerge, OrderedRecordAssembler, Pattern, PeriodicSampler, PetriNetActor, PhaseUnwrap, PhaseUnwrap, PID, Place, PlaySound, Plotter, PlotterBase, PoissonClock, PoissonClock, PolarToCartesian, PolarToComplex, PolyCylinder3D, PowerLossChannel, Pre, Previous, PrivateKeyReader, PSNR, PtalonActor, PtalonMatcher, PtalonMatcher.NestedPtalonActor, PteraController, PteraModalModel, PtinyOSCompositeActor, PublicKeyReader, Publisher, PublisherNonStrictTest, PublisherTest, Pulse, Pulse, PythonScript, Quantizer, Queue, Queue, RaisedCosine, Ramp, Ramp, RandomSource, RandomSource, Reader, RealTimeComposite, RealTimePlotter, RecordAssembler, RecordDisassembler, Recorder, Recorder, RecordUpdater, Rectangle2D, RectangularFigure2D, RecursiveLattice, RecursiveLattice, ReduceWorker, Refinement, Refinement, Refinement, Region, Register, Register, RegisterSR, Remainder, RemoveNilTokens, Repeat, Replacement, ResettableTimer, ResourcePool, ResourcePool, Rician, ROM, Room, Rotate2D, Rotate3D, Round, RunCompositeActor, SaltAndPepper, SampleDelay, Sampler, Sampler, Scale, Scale2D, Scale3D, Scrambler, SDFConverter, SDFTransformer, SecretKey, SecretKeyReader, Select, Select, Sequence, Sequence, SequencePlotter, Sequencer, Sequencer, SequenceScope, SequenceSource, SequenceToArray, SequenceToMatrix, SequentialClock, SequentialClock, SerialComm, Server, SetProperties, SetVariable, SharedQueue, SignatureActor, SignatureSigner, SignatureVerifier, Simulator, SingleEvent, SingleTokenCommutator, SingleTokenDistributor, Sink, SketchedSource, Sleep, Slice, Slicer, SliderSource, SMVLegacyCodeActor, SoundActor, SoundPlayer, Source, Sphere3D, SplitReader, SQLStatement, Starver, StateMatcher, Stop, StreamLoader, StringCompare, StringConst, StringFunction, StringIndexOf, StringLength, StringMatches, StringReplace, StringSimpleReplace, StringSubstring, StringToIntArray, StringToKeyValue, StringToUnsignedByteArray, StringToXML, SubMatrix, Subscriber, SubscriptionAggregator, SumofAbsoluteDifferences, SuppressSimultaneousEvents, SurgeVisualizer, Switch, Switch, SymmetricDecryption, SymmetricEncryption, Synchronizer, SynchronousFixTransformer, SystemCommand, TDLActor, TDLController, TDLModule, TDLRefinement, TDLTask, TerrainProperty, Test, TestActorPortDepth, TestExceptionHandler, TextString3D, ThreadedComposite, ThresholdMonitor, ThrowException, ThrowModelError, TimeCompare, TimedDelay, TimeDelay, TimedPlotter, TimedScope, TimedSource, TimeGap, Timer, TMCompositeFacade, TokenToExpression, TopLevelCurrentTime, Torus3D, Transform.EmbeddedConfigurer, TransformationRule, Transformer, TransitionRefinement, TransitionRefinement, Translate2D, Translate3D, TransmitPropertyTransformer, TrellisDecoder, Triangular, Triangulator, TrigFunction, TriggeredClock, TriggeredContinuousClock, TrueGate, 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, XMLInclusion, XSLTransformer, XYPlotter, XYScope, 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 57040 2010-01-27 20:52:32Z cxh $
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
 void createReceivers()
          Create receivers for all necessary ports.
 CausalityInterface getCausalityInterface()
          Return a causality interface for this actor.
 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.
 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

createReceivers

void createReceivers()
                     throws IllegalActionException
Create receivers for all necessary ports. For Atomic Actors this is done for each input port, for Composite Actors for both the input and the output ports.

Throws:
IllegalActionException - If any port throws it.
See Also:
AtomicActor.createReceivers(), CompositeActor.createReceivers()

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.

getCausalityInterface

CausalityInterface getCausalityInterface()
                                         throws IllegalActionException
Return a causality interface for this actor.

Returns:
A representation of the dependencies between input ports and output ports.
Throws:
IllegalActionException - Thrown if causality interface cannot be computed.

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.