Package ptolemy.actor
Interface Executable
-
- All Superinterfaces:
Initializable
- All Known Subinterfaces:
Actor
,BranchActor
,DDI
,GTCompositeActor
,InferenceActor
,MapConstrained
,PeriodicDirector
,RefinementActor
,StateSpaceActor
,TMActor
,TypedActor
,WirelessChannel
- All Known Implementing Classes:
Absent
,AbsoluteValue
,AbstractATCDirector
,AbstractCalInterpreter
,AbstractDDI
,AbstractParticleFilter
,AbstractPlaceableActor
,AbstractPredictor
,AbstractSourceStation
,AbstractStateSpaceSimulator
,AbstractStation
,AbstractTrack
,AbstractUnscentedKalmanFilter
,Accelerometer
,AccumLUB
,Accumulator
,ActorRecursion
,ActorWithPortNameProblem
,ActorWithPrivateParameter
,ActuatorSetup
,AdaptiveMedian
,AddSubtract
,AddSubtract
,AddSubtractAll
,AFDXESs
,AFDXSwitch
,AFTEDiscriminant
,AFTEFast
,Airport
,AlgebraicLoopDirector
,Align
,Alloc
,AnythingToDouble
,ApplyFilterOverArray
,ApplyFunction
,ApplyFunctionOverSequence
,ArrayAccumulate
,ArrayAppend
,ArrayAverage
,ArrayContains
,ArrayElement
,ArrayElementAsMatrix
,ArrayExtract
,ArrayLength
,ArrayLevelCrossing
,ArrayMaximum
,ArrayMinimum
,ArrayOfRecordsExporter
,ArrayOfRecordsRecorder
,ArrayPeakSearch
,ArrayPlotter
,ArrayPlotterXY
,ArrayRemoveElement
,ArraySort
,ArraySum
,ArrayToElements
,ArrayToMatrix
,ArrayToSequence
,ArrayUpdate
,ArrowKeyProbe
,ArrowKeySensor
,Assert
,ATCDirector
,ATCDirector
,AtomicActor
,AtomicActorMatcher
,AtomicCommunicationAspect
,AtomicContinuationActor
,AtomicExecutionAspect
,AtomicWirelessChannel
,AudioCapture
,AudioPlayer
,AudioPlayer
,AudioReadBuffer
,AudioReader
,AudioWriteBuffer
,AudioWriter
,Autocorrelation
,Average
,AverageOverTime
,BackDropQueue
,Backoff
,BandlimitedNoise
,BarGraph
,Barrier
,Barrier
,BaseMultipleMethodsActor
,BasicSwitch
,Bernoulli
,BinaryNonStrictLogicGate
,BinarySwitch
,BitsToInt
,BluetoothChannel
,BluetoothDevice
,BluetoothNode
,BooleanMultiplexor
,BooleanSelect
,BooleanSwitch
,BooleanToAnything
,BootstrapSampleDelay
,BoundedBufferNondeterministicDelay
,BoundedBufferTimedDelay
,Box2D
,Box3D
,Break
,Buffer
,Buffer
,Bus
,BusAssembler
,BusDisassembler
,Butterfly
,ButtonTime
,CA2DConvolution
,CActorBase
,CADirector
,CalInterpreter
,CanBus
,CanBusPriority
,CancelFireAtTest
,CartesianToComplex
,CartesianToPolar
,Case
,Case
,CaseDirector
,CatchUpComposite
,CatchUpComposite.Contents
,CAViewer
,CC3000Control
,CC3000Module
,ChangePtr
,ChannelState
,Chop
,Chopstick
,ChordFollower
,ChordParser
,CIActor
,CIDirector
,CipherActor
,CircularSweep3D
,ClassWrapper
,ClipPlayer
,Clock
,CollisionDetector
,ColorFinder
,ColtBeta
,ColtBinomial
,ColtBinomialSelector
,ColtBreitWigner
,ColtChiSquare
,ColtExponential
,ColtExponentialPower
,ColtGamma
,ColtHyperGeometric
,ColtLogarithmic
,ColtNegativeBinomial
,ColtNormal
,ColtPoisson
,ColtPoissonSlow
,ColtRandomSource
,ColtStudentT
,ColtVonMises
,ColtZeta
,Combine
,CommunicationAspectMonitor
,CommunicationRequestPort
,CommunicationResponsePort
,Commutator
,Comparator
,CompiledCompositeActor
,ComplexAddSubtract
,ComplexToCartesian
,ComplexToPolar
,ComponentActor
,CompositeActor
,CompositeActorMatcher
,CompositeCommunicationAspect
,CompositeExecutionAspect
,CompositeOptimizer
,CompositeOptimizer.OptimizerComposite
,CompositeOptimizer.OptimizerDirector
,CompositeOptimizerUsingGradient
,CompositeOptimizerUsingGradient.OptimizerComposite
,CompositeOptimizerUsingGradient.OptimizerDirector
,CompositeProcessDirector
,ComputeHistogram
,Concat
,Conditional
,Cone3D
,ConfigurationSelect
,ConfigurationSwitch
,Configurer
,Consonants
,Const
,ConstPlaceable
,ConstraintsCalculator
,ContentionAlarm
,ContinuousDirector
,ContinuousIntegrator
,ContinuousMerge
,ContinuousTimeDelay
,ContinuousTransferFunction
,ControlActor
,Controller
,Converter
,ConvertParticlesToCovarianceMatrix
,ConvolutionalCoder
,CoroutineDirector
,Counter
,Counter
,CountTrues
,Course
,CovarianceStatePredictor
,CrossbarSwitch
,CryptographyActor
,CSP
,CSPActor
,CSPBuffer
,CSPCondGet
,CSPCondPut
,CSPDirector
,CSPGet
,CSPGetToken
,CSPHasRoom
,CSPHasToken
,CSPMultiSink
,CSPMultiSource
,CSPPut
,CSPPutToken
,CSPSieve
,CSPSink
,CSPSource
,CSVReader
,CSVWriter
,Current
,CurrentDate
,CurrentMicrostep
,CurrentTime
,CustomAdder
,Cylinder3D
,DatabaseInsert
,DatabaseManager
,DatabaseQuery
,DatabaseSelect
,DataCollector
,Dataflow
,DataflowWithRates
,Datagram
,DatagramReader
,DatagramWriter
,DataPump
,DateConstructor
,DateElements
,DateToEvent
,DateToModelTime
,DateToString
,DB
,DCT2x2dc
,DCT4x4dc
,DCT8x8
,DDEActor
,DDEDirector
,DDEGet
,DDEGetNToken
,DDEGetToken
,DDEPut
,DDEPutToken
,DDESink
,DDF
,DDFBooleanSelect
,DDFDirector
,DDFOrderedMerge
,DDFSelect
,DDFSingleTokenCommutator
,DEActor
,DEDirector
,Default
,DelayChannel
,DelayLine
,DelayStart
,Derivative
,Derivative
,DeScrambler
,DestinationAirport
,DEThreadActor
,DETransformer
,Dictionary
,Differential
,DifferentialSystem
,Director
,DirectoryListing
,Discard
,DiscardDoubles
,DiscardDoublesArray
,DiscardGenerals
,DiscreteClock
,DiscreteClock
,DiscreteRandomSource
,Display
,DisplayAll
,DistributedDirector
,DistributedLineWriter
,DistributedSDFDirector
,DistributedTypedCompositeActor
,Distributor
,DoNothingDirector
,DotProduct
,DoubleFork
,DoubleMatrixToJAI
,DoubleReader
,DoubleToFix
,DoubleToMatrix
,DownSample
,DropSensorHandler
,DTDirector
,DummyDisplay
,DummySource
,DummyTransformer
,DynamicCoreAssignmentScheduler
,EDFScheduler
,ElementsToArray
,Ellipse2D
,EmbeddedCodeActor
,EmbeddedCodeActor.EmbeddedActor
,Emit
,EnabledComposite
,EncoderHandler
,Equals
,ErasureChannel
,EventButton
,EventButton
,EventFilter
,EventSource
,EventToDate
,Excel
,Exec
,ExecuteActor
,ExecuteCompositeActor
,ExecutionRequestPort
,ExecutionResponsePort
,ExecutionTime
,Exit
,Expression
,Expression
,ExpressionActorToBeAutoCodeGenerated
,ExpressionReader
,ExpressionToToken
,ExpressionWriter
,FactorOracle
,FactorOracleGenerator
,FactorOracleTop
,FakePlotter
,FCFSScheduler
,FeedBackDelay
,FFT
,FileReader
,FileWriter
,FilterMpdu
,FIR
,FixComparator
,FixConst
,FixCounter
,FixedPointDirector
,FixedPriorityScheduler
,FixSequence
,FixToDouble
,FixToFix
,FixToString
,FixTransformer
,FlowThrough
,FMIMADirector
,FMUImport
,FMUImportHybrid
,FMUQSS
,FmvAutomaton
,FrontDropQueue
,FSMActor
,FSMDirector
,FSMMatcher
,Gaussian
,GaussianMeasurementModel
,Gem5Wrapper
,GestureRecognition
,GetCausalityInterface
,GetCurrentMicrostep
,GetProperties
,GiottoDirector
,GPInputHandler
,GPIOWriter
,GPOutputSetup
,GRActor
,GRActor2D
,GRActor3D
,GradientAdaptiveLattice
,GraphicalLocator
,GRDirector
,GRShadedShape
,GRShape2D
,GRTransform
,GRTransform2D
,HadamardCode
,HammingCoder
,HammingDecoder
,HDFDirector
,HDFFSMDirector
,HistogramPlotter
,HlaAttributeReflector
,HlaAttributeUpdater
,HlaPublisher
,HlaSubscriber
,HMMExponentialClassifier
,HMMExponentialEstimator
,HMMGaussianClassifier
,HMMGaussianEstimator
,HMMGaussianEstimator
,HMMMultinomialClassifier
,HMMMultinomialEstimator
,HSBtoRGB
,HSMMGaussianEstimator
,HSMMGenerator
,HSMMGeneratorGaussianEmissions
,HSMMGeneratorMultinomialEmissions
,HSMMMultinomialEstimator
,HSMMParameterEstimator
,HSMMTimeAwareGenerator
,HSMMTimeAwareMultinomialEstimator
,HSMMTimeAwareMultinomialEstimatorWithCodegen
,HTMLPageAssembler
,HTVQEncode
,HuffmanBasic
,HuffmanCoder
,HuffmanDecoder
,HybridModalDirector
,IDCT4x4dc
,IDCT8x8
,IdentityActor
,IFFT
,IfThen
,IfThenElse
,IIR
,Image2D
,ImageContrast
,ImageDisplay
,ImageDisplay
,ImagePartition
,ImageReader
,ImageRotate
,ImageSequence
,ImageToJAI
,ImageToJMF
,ImageToString
,ImageToString
,ImageUnpartition
,Inhibit
,InputDevice
,InstantaneousDialogGenerator
,IntArrayToString
,IntegerCounter
,Integrator
,Integrator
,InteractiveDialog
,InteractiveShell
,InterfaceAutomaton
,Interpolator
,IntToBits
,InUnitsOf
,InverseSourceStation
,InverseStation
,InverseTrack
,IPAddress
,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
,JavaScript
,JopReadPort
,JopSerialRead
,JopSerialWrite
,JopWatchDog
,JopWritePort
,Joystick
,JSAccessor
,JSONToToken
,KeyInput3D
,KeyInput3DProbe
,KeyReader
,KeyStoreActor
,KeyWriter
,KMeans
,LabVIEWSimulator
,Lattice
,LazyTypedCompositeActor
,LEDCubeUpdate
,LEDMatrix
,LempelZivCoder
,LempelZivDecoder
,LevelCrossingDetector
,LevinsonDurbin
,LifeCycleManager
,LimitedFiringSource
,LimitedRangeChannel
,Limiter
,Line2D
,LinearDifferenceEquationSystem
,LinearStateSpace
,LineCoder
,LineReader
,LineWriter
,LinkVisualizer
,ListenClock
,ListenFeedBackDelay
,ListenFork
,ListenSink
,ListenWire
,LiveSoundActor
,LMSAdaptive
,Load
,Loader3D
,LoadStore
,Locator
,LogicalNot
,LogicalNot
,LogicFunction
,LogicFunction
,LogicGate
,LongToDate
,LongToDouble
,LookupTable
,LoopTest2
,LuminarySensorHandler
,MACActorBase
,Map
,MapFileStorage
,MapWorker
,MathFunction
,MatrixJoin
,MatrixSplit
,MatrixToArray
,MatrixToDouble
,MatrixToSequence
,MatrixViewer
,Maximum
,MaxIndex
,MeasurementModel
,Memory
,Memory
,MemoryAccess
,Merge
,Merge
,MetroIICompositeActor
,MetroIIDEDirector
,MetroIIDEDirectorForPtides
,MetroIIDirector
,MetroIIFSMDirector
,MetroIIMirrorComposite
,MetroIIMirrorComposite.MetroIIMirrorCompositeContents
,MetroIIModalModel
,MetroIIPNDirector
,MetroIIPtidesDirector
,MetroIIPtidesPlatform
,MetroIIPtidesPlatform.PtidesPlatformContents
,MetroIISequentialSDFDirector
,MetroIISRDirector
,MetroIISystemCDirector
,MicrostepDelay
,MidiKeyToNote
,Minimum
,MirrorComposite
,MirrorComposite.MirrorCompositeContents
,MirrorDecorator
,MobileFunction
,MobileModel
,ModalController
,ModalDirector
,ModalModel
,ModalModelMatcher
,ModalRefinement
,ModelCombine
,ModelDisplay
,ModelExecutor
,ModelGenerator
,ModelReference
,ModelView
,ModifyDate
,ModularCodeGenLazyTypedCompositeActor
,ModularCodeGenTypedCompositeActor
,ModularCompiledSDFTypedCompositeActor
,MoMLGenerator
,MonitorImage
,MonitorValue
,MostRecent
,MotorSetup
,MouseInput3D
,MovableViewScreen3D
,MovieReader
,MovieWriter
,MovingAverage
,MovingMaximum
,MultiCompositeActor
,MultiInstanceComposite
,Multiplexor
,Multiplexor
,Multiplier
,MultiplyDivide
,MultirateFSMDirector
,MutualInformationCalculator
,ND_1
,ND_2
,ND_3
,ND_4
,ND_5
,NeoPixelLEDStrip
,NetworkActorBase
,NodeRandomizer
,Noise
,Noise
,NondeterministicMerge
,NonInterruptibleTimer
,NonStrictAndGate
,NonStrictDelay
,NonStrictDisplay
,NonStrictFSMDirector
,NonStrictLogicFunction
,NonStrictLogicGate
,NonStrictOrGate
,NonStrictTest
,NonStrictThreeBitAdder
,NonStrictXorGate
,NoteParser
,NoteToMidiKey
,ObjectTokenSink
,ObjectTokenSource
,ObservationClassifier
,Occupants
,OnePort
,Optimizer
,OptimizingSDFDirector
,Or
,OracleModel
,OrderedMerge
,OrderedRecordAssembler
,OrthogonalCom
,OscReceiver
,OscSender
,OutputDevice
,PacketDropFaultGenerator
,PacketToSensorData
,ParameterEstimator
,ParameterEstimator
,ParameterSet
,ParkingClient
,ParticleFilter
,ParticleFilter
,ParticleFilterRange
,ParticleMutualInformation
,Pattern
,Pause
,Pause
,PeriodicSampler
,PetriNetActor
,PetriNetDirector
,PetriNetDisplay
,PetriNetRecorder
,PGMReader
,PhaseUnwrap
,Philosopher
,PHY
,PID
,Place
,PlaySound
,Plotter
,PlotterBase
,PNDirector
,PoissonClock
,PolarToCartesian
,PolarToComplex
,PolyCylinder3D
,PortParameterActor
,PositionConstraintCalculator
,PowerLossChannel
,Pre
,Predictor
,PreemptableServer
,PreinitializeMustBeInvoked
,Previous
,PrintString
,PrivateKeyReader
,ProcessDirector
,ProcessDirector
,Processor
,ProcessSink
,PSDFDirector
,PSNR
,PtalonActor
,PtalonMatcher
,PtalonMatcher.NestedPtalonActor
,PteraController
,PteraDirector
,PteraModalModel
,PthalesAddHeaderActor
,PthalesAtomicActor
,PthalesCompositeActor
,PthalesDirector
,PthalesDynamicCompositeActor
,PthalesGenericActor
,PthalesRemoveHeaderActor
,PthalesWrapperCompositeActor
,PtidesDirector
,PtidesPlatform
,PtidesPlatform.PtidesPlatformContents
,PublicKeyReader
,Publisher
,PublisherNonStrictTest
,PublisherTest
,Pulse
,Punctuation
,Pursuer
,PythonScript
,QSSDirector
,QSSDirectorTest
,QSSIntegrator
,QSSIntegrator
,QuantizedSampler
,Quantizer
,Queue
,Queue
,QueueControl
,RaisedCosine
,Ramp
,RampNecessaryFiles
,RandomInteger
,RandomSource
,Reader
,ReadParametersAcrossLink
,ReadParametersInContainer
,RealTimeComposite
,RealTimePlotter
,RecordAssembler
,RecordDisassembler
,Recorder
,RecorderGeneral
,RecordUpdater
,Rectangle2D
,RectangularFigure2D
,RecursiveLattice
,ReduceWorker
,Refinement
,Refinement
,ReflectComposite
,ReflectComposite.ReflectCompositeContents
,Region
,Register
,Register
,RegisterSR
,Remainder
,RemoveNilTokens
,RendezvousDirector
,Repeat
,Replacement
,ResettableTimer
,ResourcePool
,ResourcePool
,RExpression
,RExpression2
,Rician
,ROM
,Room
,Rotate2D
,Rotate3D
,Round
,RunCompositeActor
,RunningMaximum
,RunningMinimum
,RxCoordination
,SaltAndPepper
,SampleDelay
,Sampler
,Scale
,Scale2D
,Scale3D
,Scrambler
,SCRModel
,SDF
,SDFConverter
,SDFDirector
,SDFTestConsumer
,SDFTestDelay
,SDFTestJoin
,SDFTestRamp
,SDFTestSplit
,SDFTestZeroRate1
,SDFTestZeroRate2
,SDFTransformer
,SearchTest
,SecretKey
,SecretKeyReader
,Select
,SendMail
,Sensor
,SensorDataCalibration
,SensorHandler
,Sequence
,SequencedIntegrator
,SequenceDirector
,SequencedModelDirector
,SequencedSharedMemoryActor
,SequencedVariable
,SequencePlotter
,Sequencer
,SequenceScope
,SequenceSource
,SequenceToArray
,SequenceToMatrix
,SequentialClock
,SerialComm
,Server
,SetProperties
,SetVariable
,SharedBufferTransformer
,SharedQueue
,SignatureActor
,SignatureSigner
,SignatureVerifier
,SimpleALU
,SimpleDelay
,Simulator
,SingleEvent
,SingleTokenCommutator
,SingleTokenDistributor
,Sink
,SketchedSource
,Sleep
,SleepFireTwice
,Slice
,Slicer
,SliderSource
,SmallWorldRouter
,SmartSender
,SmoothSignal
,SmoothToDouble
,SmoothZeroCrossingDetector
,SMVLegacyCodeActor
,SongWrapper
,SoundActor
,SoundPlayer
,Source
,SourceStation
,SpeakerOutputDevice
,Sphere3D
,SplitReader
,SQLStatement
,SRDirector
,Starver
,StateMatcher
,StatePredictorWithAccControl
,StatePredictorWithControl
,StateSpaceModel
,StateSpaceSimulator
,StaticALU
,StaticSchedulingDirector
,Station
,StationWriter
,Stop
,Store
,StormHandling
,StreamLoader
,StreamToMatrix
,StringCompare
,StringConst
,StringFunction
,StringIndexOf
,StringLength
,StringMatches
,StringOut
,StringReplace
,StringSimpleReplace
,StringSplit
,StringSubstring
,StringToBoolean
,StringToDate
,StringToDouble
,StringToInt
,StringToIntArray
,StringToKeyValue
,StringToUnsignedByteArray
,StringToXML
,StuckAtFaultGenerator
,SubMatrix
,Subscriber
,SubscriptionAggregator
,SumofAbsoluteDifferences
,SuperdenseTimeTest
,SuppressSimultaneousEvents
,Switch
,SymmetricCrypto
,SymmetricDecryption
,SymmetricEncryption
,Synchronizer
,SynchronousFixTransformer
,SysMLADirector
,SysMLConcurrentDirector
,SysMLSequentialDirector
,SystemCommand
,Task
,TaskDirector
,TaskPtDirector
,TCPPacketReceiver
,TCPPacketTransmitter
,TCSDirector
,TDLActor
,TDLController
,TDLModule
,TDLModuleDirector
,TDLRefinement
,TDLTask
,TerrainProperty
,Test
,TestActor
,TestActorPortDepth
,TestDirector
,TesterDirector
,TestExceptionHandler
,TestModel
,TestOrderedMerge
,TestProcessActor
,TestRamp
,TestSink
,TestSink
,TestSource
,TextString3D
,ThreadDirector
,ThreadedComposite
,ThrowException
,ThrowModelError
,TimeCompare
,TimedDelay
,TimedDisplay
,TimeDelay
,TimedMonitorValue
,TimedPlotter
,TimedPNDirector
,TimedScope
,TimedSource
,TimeGap
,Timer
,TimeTriggeredEncoderHandler
,TMCompositeFacade
,TMDirector
,TokenReader
,TokenToExpression
,TokenToJSON
,TopLevelCurrentTime
,Torus3D
,Track
,Track
,Tracker
,TrackWriter
,Transform.EmbeddedConfigurer
,TransformationRule
,TransformationRule.TransformationDirector
,Transformer
,Transition
,TransitionRefinement
,Translate2D
,Translate3D
,TransmitPropertyTransformer
,TrellisDecoder
,Triangular
,Triangulator
,TrigFunction
,TriggeredClock
,TrueGate
,TTESwitch
,TwoPort
,TwoPut
,TxCoordination
,TypedAtomicActor
,TypedCompositeActor
,TypedTestActor
,TypedTestProcessActor
,TypeOpaqueCompositeActor
,TypeTest
,UnaryMathFunction
,Undefined
,Uniform
,UnionDisassembler
,UnionMerge
,UnitsConverter
,UnscentedKalmanFilterSSM
,UnsignedByteArrayToString
,UpSample
,URLDirectoryReader
,URLReader
,URLToImage
,ValidateMpdu
,VariableClock
,VariableDelay
,VariableDelaySwitch
,VariableFIR
,VariableLattice
,VariableRecursiveLattice
,VariableSleep
,VectorAssembler
,VectorDisassembler
,VideoCamera
,VideoPlayer
,ViewLayers3D
,ViewScreen2D
,ViewScreen3D
,VirtualTinyOS
,VisualModelReference
,VisualSequenceDirector
,ViterbiDecoder
,Vowels
,VQDecode
,WaitingTime
,WallClockTime
,Waveform
,When
,While
,Wire
,Wire
,WiredToWireless
,WirelessComposite
,WirelessDirector
,WirelessToWired
,Writer
,XMLInclusion
,XSLTransformer
,XYPlotter
,XYScope
,ZenoDelay
,ZeroOneSource
,ZeroOrderHold
public interface Executable extends Initializable
This interface defines the action methods, which determine how an object can be invoked. It should be implemented by actors and directors. In an execution of an application, the preinitialize() and initialize() methods should be invoked exactly once, followed by any number of iterations, followed by exactly one invocation of the wrapup() method. An iteration is defined to be any number of invocations of prefire() and fire(), where fire() is invoked only if prefire() returns true, followed by exactly one invocation of the postfire() method. The postfire() method returns false if no further iterations should occur. The initialize(), fire() and postfire() methods may produce output data. The preinitialize() method runs before type resolution has been done, and is permitted to make changes in the topology of the model.- Since:
- Ptolemy II 0.2
- Version:
- $Id$
- Author:
- Mudit Goel, Edward A. Lee, Lukito Muliadi, Steve Neuendorffer
- Pt.AcceptedRating:
- Green (davisj)
- Pt.ProposedRating:
- Green (eal)
-
-
Field Summary
Fields Modifier and Type Field Description static int
COMPLETED
An indicator that the iterate() method completed successfully.static int
NOT_READY
An indicator that the iterate() method did not complete because the actor was not ready (prefire() returned false).static int
STOP_ITERATING
An indicator that the actor does not wish to be fired again.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
fire()
Fire the actor.boolean
isFireFunctional()
Return true if this executable does not change state in either the prefire() or the fire() method.boolean
isStrict()
Return true if this executable is strict, meaning all inputs must be known before iteration.int
iterate(int count)
Invoke a specified number of iterations of the actor.boolean
postfire()
This method should be invoked once per iteration, after the last invocation of fire() in that iteration.boolean
prefire()
This method should be invoked prior to each invocation of fire().void
stop()
Request that execution of this Executable stop as soon as possible.void
stopFire()
Request that execution of the current iteration complete.void
terminate()
Terminate any currently executing model with extreme prejudice.-
Methods inherited from interface ptolemy.actor.Initializable
addInitializable, initialize, preinitialize, removeInitializable, wrapup
-
-
-
-
Field Detail
-
COMPLETED
static final int COMPLETED
An indicator that the iterate() method completed successfully.- See Also:
- Constant Field Values
-
NOT_READY
static final int NOT_READY
An indicator that the iterate() method did not complete because the actor was not ready (prefire() returned false).- See Also:
- Constant Field Values
-
STOP_ITERATING
static final int STOP_ITERATING
An indicator that the actor does not wish to be fired again.- See Also:
- Constant Field Values
-
-
Method Detail
-
fire
void fire() throws IllegalActionException
Fire the actor. This may be invoked several times between invocations of prefire() and postfire(). Output data may (and normally will) be produced. Typically, the fire() method performs the computation associated with an actor. This method is not required to have bounded execution. However, after endFire() is called, this method should return in bounded time.- Throws:
IllegalActionException
- If firing is not permitted.
-
isFireFunctional
boolean isFireFunctional()
Return true if this executable does not change state in either the prefire() or the fire() method. A class that returns true is said to obey the actor abstract semantics. In particular, such an actor can be used in domains that have a fixed point semantics and may repeatedly fire the actor before committing to state changes.- Returns:
- True if this executable only updates its states during an iteration in the postfire() method.
-
isStrict
boolean isStrict() throws IllegalActionException
Return true if this executable is strict, meaning all inputs must be known before iteration. Normally, classes that implement this interface are strict, so this method will return true. However, some classes can perform an iteration even if some inputs are not known (i.e., these classes tolerate a return value of false from the isKnown() method of Receiver).- Returns:
- True if this executable is strict, meaning all inputs must be known before iteration.
- Throws:
IllegalActionException
- Thrown by subclass.
-
iterate
int iterate(int count) throws IllegalActionException
Invoke a specified number of iterations of the actor. An iteration here is equivalent to invoking prefire(), fire(), and postfire(), in that order. In an iteration, if prefire() returns true, then fire() will be called once, followed by postfire(). Otherwise, if prefire() returns false, fire() and postfire() are not invoked, and this method returns NOT_READY. If postfire() returns false, then no more iterations are invoked, and this method returns STOP_ITERATING. Otherwise, it returns COMPLETED.An implementation of this method is not required to actually invoke prefire(), fire(), and postfire(). An implementation of this method must, however, perform the equivalent operations.
Note that this method for iterating an actor should be used only in domains where a single invocation of prefire() and fire() is sufficient in an iteration.
- Parameters:
count
- The number of iterations to perform.- Returns:
- NOT_READY, STOP_ITERATING, or COMPLETED.
- Throws:
IllegalActionException
- If iterating is not permitted, or if prefire(), fire(), or postfire() throw it.
-
postfire
boolean postfire() throws IllegalActionException
This method should be invoked once per iteration, after the last invocation of fire() in that iteration. The postfire() method should not produce output data on output ports of the actor. It returns true if the execution can proceed into the next iteration, false if the actor does not wish to be fired again. This method typically wraps up an iteration, which may involve updating local state or updating displays.- Returns:
- True if the execution can continue.
- Throws:
IllegalActionException
- If postfiring is not permitted.
-
prefire
boolean prefire() throws IllegalActionException
This method should be invoked prior to each invocation of fire(). It returns true if the fire() method can be invoked, given the current status of the inputs and parameters of the actor. Thus this method will typically check preconditions for a firing, if there are any. In an opaque, non-atomic entity, it may move data into an inner subsystem.- Returns:
- True if the iteration can proceed.
- Throws:
IllegalActionException
- If prefiring is not permitted.
-
stop
void stop()
Request that execution of this Executable stop as soon as possible. An implementation of this method should pass on the request to any contained executable objects. An implementation should also return false from postfire() to indicate to the caller that no further execution of this Executable is appropriate. After this method is called, the executable object should not be fired again. The stopFire() method, by contrast, requests that the current iteration be completed, but not that the entire execution be stopped. I.e., the Executable may be fired again after stopFire() is called.
-
stopFire
void stopFire()
Request that execution of the current iteration complete. If an iteration is always a finite computation (the usual case), i.e. the fire() method always returns in finite time, then nothing needs to be done in this method, except possibly to pass on the request to any contained executable objects. This method is used to request that an unbounded computation suspend, returning control to the caller. Thus, if the fire() method does not normally return in finite time, then this method is used to request that it return. It should suspend execution in such a way that if the fire() method is called again, execution will resume at the point where it was suspended. However, it should not assume the fire() method will be called again. It is possible that the wrapup() method will be called next.
-
terminate
void terminate()
Terminate any currently executing model with extreme prejudice. This method is not intended to be used as a normal route of stopping execution. To normally stop execution, call the finish() method instead. This method should be called only when execution fails to terminate by normal means due to certain kinds of programming errors (infinite loops, threading errors, etc.).After this method completes, all resources in use should be released and any sub-threads should be killed. However, a consistent state is not guaranteed. The topology should probably be recreated before attempting any further operations. This method should not be synchronized because it must happen as soon as possible, no matter what.
-
-