|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Objectvisualmodeler.ResourceMachine
ResourceMachine stores the values assossiated for each machine
| Constructor Summary | |
ResourceMachine(int id,
boolean random,
Random r)
Allocates a new ResourceMachine object |
|
| Method Summary | |
String |
generateCode(String indent)
Generates the Java code for the creation of PEs |
int |
getMachineId()
Gets the machine id |
int |
getNumPE()
Gets the number of PEs (Processing Elements) |
void |
loadXml(org.w3c.dom.NodeList nodeList)
Loads XML file |
void |
resetValue()
Resets the value of PEs into the previous ones |
String |
saveFile(String indent)
Saves an information about Machine and PE into XML format |
void |
saveValue()
Saves the value of PEs |
void |
showDialog(javax.swing.JPanel panel)
Shows a Resource Machine dialog |
| Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ResourceMachine(int id,
boolean random,
Random r)
id - resource idrandom - a flag to determine whether to randomize values or notr - a Random object| Method Detail |
public int getMachineId()
public int getNumPE()
public String generateCode(String indent)
indent - indentation
public String saveFile(String indent)
indent - indentation
public void showDialog(javax.swing.JPanel panel)
panel - a JPanel objectpublic void saveValue()
public void resetValue()
public void loadXml(org.w3c.dom.NodeList nodeList)
nodeList - a NodeList object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||