|
||||||||||
| 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.PlainManagedBlock
demos.atomicblocks.Probe
public class Probe
A Probe is a block that notifies a PinListener each time one of its input pins has tokens at the end of the snapshot.
| Nested Class Summary | |
|---|---|
static interface |
Probe.PinListener
|
| Field Summary | |
|---|---|
private Probe.PinListener |
listener_
|
| Constructor Summary | |
|---|---|
Probe(java.lang.String name,
Probe.PinListener listener,
java.lang.Object... properties)
|
|
| Method Summary | |
|---|---|
void |
doEndOfSnapshot()
The endOfSnapshot behavior of the block. |
void |
doSetup()
The setup behavior of the block. |
void |
doUpdate()
The update behavior of the block. |
void |
wrapup()
Cleanup at the end of the simulation. |
| Methods inherited from class modhelxs.state_management.PlainManagedBlock |
|---|
doPreSetup, doReset, doStartOfSnapshot |
| Methods inherited from class modhelxs.state_management.ManagedBlock |
|---|
emitObservationRequests, endOfSnapshot, endOfUpdate, initFromProperties, prep, reset, setup, startOfSnapshot, startOfUpdate, update, validate, wasUpdated |
| Methods inherited from class modhelxs.abstractsemantics.Block |
|---|
connect, connectFromInterfaceBlock, connectFromModel, connectFromRegularBlock, getEngine, getInputPins, getMoC, getOutputPins, getParent, getSolver, getTimeOfRequest, hasObservationRequest, 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 |
|---|
private final Probe.PinListener listener_
| Constructor Detail |
|---|
public Probe(java.lang.String name,
Probe.PinListener listener,
java.lang.Object... properties)
| Method Detail |
|---|
public void doSetup()
ManagedBlock
doSetup in class ManagedBlockpublic void doUpdate()
ManagedBlock
doUpdate in class ManagedBlockpublic void doEndOfSnapshot()
ManagedBlock
doEndOfSnapshot in class PlainManagedBlockpublic void wrapup()
ObservableEntity
wrapup in class ManagedBlock
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||