|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmuskel.MdfGraph
public class MdfGraph
This is the class used to store a whole graph. Accessory methods are provided to interact with and use the graph.
| Field Summary | |
|---|---|
boolean |
debug
|
| Constructor Summary | |
|---|---|
MdfGraph()
standard constructor |
|
MdfGraph(int ggid)
constructor with a given graph id (not used at the moment) |
|
| Method Summary | |
|---|---|
void |
addInstruction(Mdfi instr)
adds an instruction to the graph |
java.lang.Object |
clone()
unused at the moment. |
java.lang.Object |
compute(java.lang.Object task)
This is the method computing an MDF Graph on a given input token. |
int |
getGraphId()
this is used to get the graph id. |
int |
getInputInstrId()
This is used to get the index of the input instruction, the one where the input token has to be stored |
int |
getMaxInstrId()
used to understand how to relocate next graph in compositions |
MdfGraph |
mdfClone()
overrides the Object clone. |
void |
reloc(int offset)
used to move the instruction ids in a graph in a new range. |
void |
setGid(int ggid)
used to set graph id to a given value. |
void |
setId(int ggid)
used to set the graph id when the graph is instantiated |
int |
setOutputInstrId(Dest d)
looks for the only one instruction whose unique output token dest is NoInstrId and stores in it the given destination (if not null) |
java.lang.String |
toString()
overrides Object toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final boolean debug
| Constructor Detail |
|---|
public MdfGraph()
public MdfGraph(int ggid)
ggid - | Method Detail |
|---|
public MdfGraph mdfClone()
public void setId(int ggid)
ggid - public int getGraphId()
public void addInstruction(Mdfi instr)
instr - the instruction to be addedpublic void reloc(int offset)
offset - the offset to be added to instruction idspublic int getInputInstrId()
public int setOutputInstrId(Dest d)
d - the Destination to be given to the last instruction
public int getMaxInstrId()
public java.lang.String toString()
toString in class java.lang.Objectpublic void setGid(int ggid)
ggid - the graph idpublic java.lang.Object compute(java.lang.Object task)
token - the value of the input task
public java.lang.Object clone()
clone in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||