|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCreator
public class Creator
This class creates the PE world according to a configuration file provided by the simulation application programmer. It parses the configuration file, decides how many LPs each PE should create and send the detailed LP information to those PEs. Application programmer can overwrite it.
Field Summary | |
---|---|
(package private) java.util.Vector<RoutingInfo> |
gns
vector that holds the global routing into |
(package private) int |
lpForEach
number of LPs all the other PEs will create |
(package private) int |
lpForFirst
number of LPs the first PE will create; =lpForEach+remainder |
(package private) int |
numPEs
the number of PEs in this mpi world |
(package private) java.util.Vector<LPConfigInfo> |
simClasses
vector that holds the LP config information |
Constructor Summary | |
---|---|
Creator()
|
Method Summary | |
---|---|
java.util.Vector |
getLPConfigInfo()
|
int |
getLPNumForEach()
|
int |
getLPNumForFirst()
|
void |
procConfigFile(java.lang.String configFile,
int size)
Create the simulation world using a configuration file. |
void |
sendLPInfo()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
java.util.Vector<LPConfigInfo> simClasses
java.util.Vector<RoutingInfo> gns
int lpForFirst
int lpForEach
int numPEs
Constructor Detail |
---|
public Creator()
Method Detail |
---|
public void procConfigFile(java.lang.String configFile, int size)
configFile
- String indicating the name of the configuration file.size
- int the size of the mpi world, e.g. number of PEs.public java.util.Vector getLPConfigInfo()
public int getLPNumForFirst()
public int getLPNumForEach()
public void sendLPInfo()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |