|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmodhelxs.abstractsemantics.NamedEntity
modhelxs.abstractsemantics.ObservableEntity
public abstract class ObservableEntity
Implementation of an observable entity for the abstract semantics of ModHel'X.
| Field Summary | |
|---|---|
private java.util.Map<java.lang.String,Pin> |
pins_
Association between names and pins for this entity. |
| Constructor Summary | |
|---|---|
ObservableEntity(java.lang.String name)
|
|
ObservableEntity(java.lang.String name,
java.lang.Object... properties)
|
|
| Method Summary | |
|---|---|
Pin |
addPin(Pin pin)
Add a pin to this entity. |
abstract Relation |
connect(Pin mine,
Pin other)
Connect one of my pins to another pin. |
abstract Relation |
connectFromInterfaceBlock(InterfaceBlock intfBlock,
Pin other,
Pin mine)
Connect pin other of InterfaceBlock intfBlock to my pin mine. |
abstract Relation |
connectFromModel(Model<?> model,
Pin other,
Pin mine)
Connect pin other of Model model to my pin mine. |
abstract Relation |
connectFromRegularBlock(Block block,
Pin other,
Pin mine)
Connect pin other of regular Block block to my pin mine. |
abstract void |
emitObservationRequests()
Emit observation request for future snapshots by creating ticks on clocks. |
abstract void |
endOfSnapshot()
End of the observation round, the observable can update its internal state. |
abstract void |
endOfUpdate()
End of a partial update (produce partial outputs to the outer model). |
abstract java.util.Collection<Pin> |
getInputPins()
Get the input pins of this entity. |
java.util.Collection<Pin> |
getInterface()
Return the interface of this observable. |
abstract ModelOfComputation<?> |
getMoC()
Return the model of computation in which this entity is observed. |
abstract java.util.Collection<Pin> |
getOutputPins()
Get the output ins of this entity. |
Pin |
getPin(java.lang.String name)
Get the pin named name of this entity. |
abstract void |
prep()
Initialize the entity. |
abstract void |
reset()
Reset the computation of the outputs and next state for the current snapshot. |
abstract void |
sanityCheck()
Perform sanity check before setup. |
abstract void |
setup()
Prepare for the simulation. |
abstract void |
startOfSnapshot()
Start a new snapshot (observation round). |
abstract void |
startOfUpdate()
Start a partial update (get partial inputs from the outer model). |
abstract void |
update()
Update the interface of the observable: take inputs into account, update outputs. |
abstract boolean |
validate()
Validate the computation of the observation. |
abstract void |
wrapup()
Cleanup at the end of the simulation. |
| 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.NamedEntity |
|---|
getName, getProperties, setName |
| Field Detail |
|---|
private java.util.Map<java.lang.String,Pin> pins_
| Constructor Detail |
|---|
public ObservableEntity(java.lang.String name)
public ObservableEntity(java.lang.String name,
java.lang.Object... properties)
| Method Detail |
|---|
public abstract ModelOfComputation<?> getMoC()
public java.util.Collection<Pin> getInterface()
getInterface in interface ObservableEntitypublic Pin addPin(Pin pin)
public Pin getPin(java.lang.String name)
name of this entity.
public abstract Relation connect(Pin mine,
Pin other)
public abstract Relation connectFromModel(Model<?> model,
Pin other,
Pin mine)
other of Model model to my pin mine.
public abstract Relation connectFromRegularBlock(Block block,
Pin other,
Pin mine)
other of regular Block block to my pin mine.
public abstract Relation connectFromInterfaceBlock(InterfaceBlock intfBlock,
Pin other,
Pin mine)
other of InterfaceBlock intfBlock to my pin mine.
public abstract java.util.Collection<Pin> getInputPins()
public abstract java.util.Collection<Pin> getOutputPins()
public abstract void prep()
public abstract void sanityCheck()
public abstract void setup()
public abstract void startOfSnapshot()
public abstract void reset()
public abstract void startOfUpdate()
public abstract void update()
public abstract void endOfUpdate()
public abstract boolean validate()
public abstract void endOfSnapshot()
public abstract void emitObservationRequests()
public abstract void wrapup()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||