|
||||||||||
| 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.abstractsemantics.InterfaceBlock
modhelxs.state_management.ManagedInterfaceBlock
modhelxs.state_management.TimedManagedInterfaceBlock<T,I>
public abstract class TimedManagedInterfaceBlock<T extends java.lang.Comparable<T>,I extends java.lang.Comparable<I>>
An implementation of the ManagedInterfaceBlock for timed IB.
| Field Summary | |
|---|---|
(package private) java.lang.Class<T> |
clockType_
The type of the time for the observation clock. |
(package private) java.lang.Class<I> |
internalClockType_
The type of the time for the observation clock of the internal model. |
private Clock<T> |
my_clock_
The observation clock of the block. |
private Clock<I> |
my_internal_clock_
The observation clock of the internal model. |
private Attribute<I> |
next_internal_obs_time
Time of the next observation of the internal model. |
private Attribute<T> |
next_obs_time
Time of the next observation. |
| Constructor Summary | |
|---|---|
TimedManagedInterfaceBlock(java.lang.Class<T> clockType,
TagCalculus<T> tcalc,
java.lang.Class<I> internalClockType,
TagCalculus<I> itcalc,
java.lang.String name,
Model<?> model,
java.lang.Object... properties)
Create a TimedManagedInterfaceBlock with of clock of type T. |
|
| Method Summary | |
|---|---|
I |
advanceNextInternalObservationTime(I duration)
Add a duration to the next observation date of the block. |
I |
advanceNextInternalObservationTime(Value<I> duration)
Add a duration to the next observation date of the block. |
T |
advanceNextObservationTime(T duration)
Add a duration to the next observation date of the block. |
T |
advanceNextObservationTime(Value<T> duration)
Add a duration to the next observation date of the block. |
void |
doPreSetup()
Some pre-setup behavior necessary for subclasses. |
void |
doReset()
The reset behavior of the interface block. |
void |
doStartOfSnapshot()
The start of snapshot behavior of the block. |
void |
emitObservationRequests()
Emit observation request for future snapshots by creating ticks on clocks. |
I |
getNextInternalObservationTime()
Return the next observation date of the block. |
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? |
Clock<I> |
internalObservationClock()
Return the observation clock of the block. |
static java.lang.String |
nextInternalObsTimeAttribute()
Return the name of the Attribute that contains the next observation time of the internal model. |
static java.lang.String |
nextObsTimeAttribute()
Return the name of the Attribute that contains the next observation time. |
Clock<T> |
observationClock()
Return the observation clock of the block. |
I |
setNextInternalObservationTime(I date)
Set the next observation date of the block. |
T |
setNextObservationTime(T date)
Set the next observation date of the block. |
boolean |
shouldUpdateModel()
Should the internal model be updated. |
| Methods inherited from class modhelxs.state_management.ManagedInterfaceBlock |
|---|
doEndOfSnapshot, doGhostUpdate, doPostUpdate, doPreUpdate, doSetup, endOfSnapshot, endOfUpdate, initFromProperties, internalWasUpdated, reset, setup, startOfSnapshot, startOfUpdate, update, wasUpdated |
| Methods inherited from class modhelxs.abstractsemantics.InterfaceBlock |
|---|
adaptIn, adaptOut, connect, connectFromModel, createAdaptationRelation, getAdaptation, getInputPins, getInternalModel, getOutputPins, prep, validate, wrapup |
| Methods inherited from class modhelxs.abstractsemantics.Block |
|---|
connectFromInterfaceBlock, connectFromRegularBlock, getEngine, getMoC, 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.Block |
|---|
getParent |
| 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<T>> clockType_
private Clock<T extends java.lang.Comparable<T>> my_clock_
private Attribute<T extends java.lang.Comparable<T>> next_obs_time
java.lang.Class<I extends java.lang.Comparable<I>> internalClockType_
private Clock<I extends java.lang.Comparable<I>> my_internal_clock_
private Attribute<I extends java.lang.Comparable<I>> next_internal_obs_time
| Constructor Detail |
|---|
public TimedManagedInterfaceBlock(java.lang.Class<T> clockType,
TagCalculus<T> tcalc,
java.lang.Class<I> internalClockType,
TagCalculus<I> itcalc,
java.lang.String name,
Model<?> model,
java.lang.Object... properties)
| Method Detail |
|---|
public static java.lang.String nextObsTimeAttribute()
public static java.lang.String nextInternalObsTimeAttribute()
public Clock<T> observationClock()
public Clock<I> internalObservationClock()
public T getNextObservationTime()
public I getNextInternalObservationTime()
public T setNextObservationTime(T date)
public T advanceNextObservationTime(T duration)
public T advanceNextObservationTime(Value<T> duration)
public I setNextInternalObservationTime(I date)
public I advanceNextInternalObservationTime(I duration)
public I advanceNextInternalObservationTime(Value<I> duration)
public void doPreSetup()
ManagedInterfaceBlock
doPreSetup in class ManagedInterfaceBlockpublic void doStartOfSnapshot()
ManagedInterfaceBlock
doStartOfSnapshot in class ManagedInterfaceBlockpublic void doReset()
ManagedInterfaceBlock
doReset in class ManagedInterfaceBlockpublic boolean shouldUpdateModel()
ManagedInterfaceBlock
shouldUpdateModel in class ManagedInterfaceBlockpublic final void emitObservationRequests()
ObservableEntity
emitObservationRequests in class InterfaceBlockpublic final boolean hasObservationRequest()
Block
hasObservationRequest in class Blockpublic final Tag<T> getTimeOfRequest()
Block
getTimeOfRequest in class Block
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||