ActivityStation

open class ActivityStation(parent: ModelElement, activityTime: RVariableIfc = ConstantRV.ZERO, nextReceiver: QObjectReceiverIfc = NotImplementedReceiver, name: String? = null) : Station, ActivityStationCIfc(source)

Models a simple delay.

A QObject may have an object that implements the GetValueIfc attached. If so, the current value from this object is used as the delay time at the station. If not attached, then the specified delay time for the station will be used. Thus, a processed QObject instance can bring its own delay time. In addition, a QObject may have a ListIterator attached. If one is attached, the iterator will be used to determine where to send the qObject. If an iterator is not attached, then the specified next receiver (if not null) will be used. Thus, a processed QObject instance can determine where it goes to next after processing.

Parameters

parent

the model element serving as this element's parent

activityTime

the delay time at the station. The default is a 0.0 delay.

nextReceiver

the receiving location that will receive the processed qObjects once the processing has been completed. A default of null, indicates that there is no receiver. If no receiver is present, the processed qObject are sent silently nowhere.

name

the name of the station

Constructors

Link copied to clipboard
constructor(parent: ModelElement, activityTime: RVariableIfc = ConstantRV.ZERO, nextReceiver: QObjectReceiverIfc = NotImplementedReceiver, name: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard

If true, the instance will attempt to use the QObject that is experiencing the activity to determine the activity time by referencing the QObject's valueObject. If false (the default), the supplied activity time will be used