|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmodhelxs.abstractsemantics.NamedEntity
modhelxs.abstractsemantics.ObservableEntity
modhelxs.abstractsemantics.Block
modhelxs.state_management.ManagedBlock
modhelxs.state_management.TimedManagedBlock<T>
public abstract class TimedManagedBlock<T extends java.lang.Comparable<? super T>>
A ManagedBlock with timed behavior.
| Field Summary | |
|---|---|
(package private) java.lang.Class<T> |
clockType_
The type of the time for the observation clock. |
private Clock<T> |
my_clock_
The observation clock of the block. |
private Attribute<T> |
next_obs_time
Time of the next observation. |
| Constructor Summary | |
|---|---|
TimedManagedBlock(java.lang.Class<T> clockType,
TagCalculus<T> tcalc,
java.lang.String name,
java.lang.Object... properties)
|
|
| Method Summary | |
|---|---|
void |
doPreSetup()
Some pre-setup behavior necessary for subclasses. |
void |
doReset()
The reset behavior of the block. |
void |
doStartOfSnapshot()
The start of snapshot behavior of the block. |
void |
emitObservationRequests()
Emit observation request for future snapshots by creating ticks on clocks. |
T |
getNextObservationTime()
Return the next observation date of the block. |
Tag<T> |
getTimeOfRequest()
Get the time tag at which the block has requested to be observed. |
boolean |
hasObservationRequest()
Has this block posted an observation request? |
T |
initNextObservationTime(T date)
Initialize the next observation date of the block (during setup). |
static java.lang.String |
nextObsTimeAttribute()
|
Clock<T> |
observationClock()
Return the observation clock of the block. |
T |
setNextObservationTime(T date)
Set the next observation date of the block. |
T |
tagDifference(T a,
T b)
|
T |
tagProduct(T a,
T b)
|
T |
tagQuotient(T a,
T b)
|
T |
tagSum(T a,
T b)
|
| Methods inherited from class modhelxs.state_management.ManagedBlock |
|---|
doEndOfSnapshot, doSetup, doUpdate, endOfSnapshot, endOfUpdate, initFromProperties, prep, reset, setup, startOfSnapshot, startOfUpdate, update, validate, wasUpdated, wrapup |
| Methods inherited from class modhelxs.abstractsemantics.Block |
|---|
connect, connectFromInterfaceBlock, connectFromModel, connectFromRegularBlock, getEngine, getInputPins, getMoC, getOutputPins, getParent, getSolver, sanityCheck, setParent |
| Methods inherited from class modhelxs.abstractsemantics.ObservableEntity |
|---|
addPin, getInterface, getPin |
| Methods inherited from class modhelxs.abstractsemantics.NamedEntity |
|---|
getName, getProperties, getProperty, hasProperty, removeProperty, setName, setProperties, setProperty, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface modhelxs.ecore.ObservableEntity |
|---|
getInterface |
| Methods inherited from interface modhelxs.ecore.NamedEntity |
|---|
getName, getProperties, setName |
| Field Detail |
|---|
java.lang.Class<T extends java.lang.Comparable<? super T>> clockType_
private Clock<T extends java.lang.Comparable<? super T>> my_clock_
private Attribute<T extends java.lang.Comparable<? super T>> next_obs_time
| Constructor Detail |
|---|
public TimedManagedBlock(java.lang.Class<T> clockType,
TagCalculus<T> tcalc,
java.lang.String name,
java.lang.Object... properties)
| Method Detail |
|---|
public static java.lang.String nextObsTimeAttribute()
public Clock<T> observationClock()
public T getNextObservationTime()
public T setNextObservationTime(T date)
public T initNextObservationTime(T date)
public void doStartOfSnapshot()
ManagedBlock
doStartOfSnapshot in class ManagedBlockpublic void doReset()
ManagedBlock
doReset in class ManagedBlockpublic void doPreSetup()
ManagedBlock
doPreSetup in class ManagedBlockpublic final void emitObservationRequests()
ObservableEntity
emitObservationRequests in class ManagedBlockpublic final boolean hasObservationRequest()
Block
hasObservationRequest in class Blockpublic final Tag<T> getTimeOfRequest()
Block
getTimeOfRequest in class Block
public T tagSum(T a,
T b)
public T tagDifference(T a,
T b)
public T tagProduct(T a,
T b)
public T tagQuotient(T a,
T b)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||