|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmodhelxs.abstractsemantics.NamedEntity
modhelxs.abstractsemantics.BlockStructure
public class BlockStructure
A BlockStructure is a set of blocks with relations between their pins. A BlockStructure has no meaning by itself, it is interpreted according to a model of computation for computing its behavior.
| Field Summary | |
|---|---|
private java.util.Collection<Block> |
blocks_
The blocks which belong to this structure. |
private Model<?> |
model_
The model this structure belongs to. |
private java.util.Collection<Relation> |
relations_
The relations between the pins of these blocks. |
| Constructor Summary | |
|---|---|
BlockStructure(java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
add(Block b)
Add a block to this structure. |
Relation |
createRelation(Pin source,
Pin target)
Create a relation between two pins in the structure. |
void |
emitObservationRequests()
After the end of the snapshot, the clocks have been reset, and it is time to post observation requests in the form of ticks. |
void |
endOfSnapshot()
End of the observation round, the observable can update its internal state. |
java.util.Collection<Block> |
getBlocks()
Get the blocks that belong to this structure. |
Model<?> |
getModel()
Get the model this structure belongs to. |
java.util.Collection<Relation> |
getRelations()
Get the relations between the pins of the blocks of this structure. |
void |
prep()
Initialize the behavior of the structure. |
void |
reset()
Reset the computation of the outputs and next state of the observable. |
void |
sanityCheck()
Perform sanity check before setup. |
void |
setModel(Model<?> model_)
Set the model this structure belongs to. |
void |
setup()
Setup the structure for a simulation. |
int |
size()
Get the number of blocks in this structure. |
void |
startOfSnapshot()
Start a new snapshot. |
boolean |
validate()
Validate the computation of the observation. |
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.Collection<Block> blocks_
private java.util.Collection<Relation> relations_
private Model<?> model_
| Constructor Detail |
|---|
public BlockStructure(java.lang.String name)
| Method Detail |
|---|
public java.util.Collection<Block> getBlocks()
BlockStructure
getBlocks in interface BlockStructurepublic int size()
public void add(Block b)
public java.util.Collection<Relation> getRelations()
BlockStructure
getRelations in interface BlockStructure
public Relation createRelation(Pin source,
Pin target)
public Model<?> getModel()
BlockStructure
getModel in interface BlockStructurepublic void setModel(Model<?> model_)
public void prep()
public void sanityCheck()
public void setup()
prep.
This call is delegated to the blocks of the structure.
public void startOfSnapshot()
public void reset()
public boolean validate()
public void endOfSnapshot()
public void emitObservationRequests()
public void wrapup()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||