|
||||||||||
| 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
public abstract class Block
A Block is the basic unit of behavior in ModHel'X.
| Field Summary | |
|---|---|
private java.util.Set<Pin> |
inputpins_
The input pins of this block. |
private java.util.Set<Pin> |
outputpins_
The output pins of this block. |
private BlockStructure |
structure_
The BlockStructure this block belongs to. |
| Constructor Summary | |
|---|---|
Block(java.lang.String name,
java.lang.Object... properties)
|
|
| Method Summary | |
|---|---|
Relation |
connect(Pin mine,
Pin other)
Connect one of my pins to another pin. |
Relation |
connectFromInterfaceBlock(InterfaceBlock intfBlock,
Pin other,
Pin mine)
Connect pin other of InterfaceBlock intfBlock to my pin mine. |
Relation |
connectFromModel(Model<?> model,
Pin other,
Pin mine)
Connect pin other of Model model to my pin mine. |
Relation |
connectFromRegularBlock(Block block,
Pin other,
Pin mine)
Connect pin other of regular Block block to my pin mine. |
Engine |
getEngine()
Get the execution Engine by which this block is executed. |
java.util.Collection<Pin> |
getInputPins()
Get the input pins of this entity. |
ModelOfComputation<?> |
getMoC()
Get the ModelOfComputation according to which this Block is executed. |
java.util.Collection<Pin> |
getOutputPins()
Get the output ins of this entity. |
BlockStructure |
getParent()
Get the block structure this block belongs to. |
ClockSet |
getSolver()
Get the clock solver of the execution engine. |
Tag<? extends java.lang.Comparable<?>> |
getTimeOfRequest()
Get the time tag at which the block has requested to be observed. |
boolean |
hasObservationRequest()
Has this block posted an observation request? |
void |
sanityCheck()
Perform sanity check before setup. |
void |
setParent(BlockStructure s)
Set the BlockStructure this block belongs to. |
| Methods inherited from class modhelxs.abstractsemantics.ObservableEntity |
|---|
addPin, emitObservationRequests, endOfSnapshot, endOfUpdate, getInterface, getPin, prep, reset, setup, startOfSnapshot, startOfUpdate, update, validate, wrapup |
| 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 BlockStructure structure_
private java.util.Set<Pin> inputpins_
private java.util.Set<Pin> outputpins_
| Constructor Detail |
|---|
public Block(java.lang.String name,
java.lang.Object... properties)
| Method Detail |
|---|
public BlockStructure getParent()
Block
getParent in interface Blockpublic void setParent(BlockStructure s)
public Relation connect(Pin mine,
Pin other)
connect in class ObservableEntity
public Relation connectFromModel(Model<?> model,
Pin other,
Pin mine)
other of Model model to my pin mine.
connectFromModel in class ObservableEntity
public Relation connectFromRegularBlock(Block block,
Pin other,
Pin mine)
other of regular Block block to my pin mine.
connectFromRegularBlock in class ObservableEntity
public Relation connectFromInterfaceBlock(InterfaceBlock intfBlock,
Pin other,
Pin mine)
other of InterfaceBlock intfBlock to my pin mine.
connectFromInterfaceBlock in class ObservableEntitypublic ModelOfComputation<?> getMoC()
getMoC in class ObservableEntitypublic Engine getEngine()
public ClockSet getSolver()
public boolean hasObservationRequest()
public Tag<? extends java.lang.Comparable<?>> getTimeOfRequest()
public java.util.Collection<Pin> getInputPins()
ObservableEntity
getInputPins in class ObservableEntitypublic java.util.Collection<Pin> getOutputPins()
ObservableEntity
getOutputPins in class ObservableEntitypublic void sanityCheck()
ObservableEntity
sanityCheck in class ObservableEntity
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||