Class Creator

java.lang.Object
  extended by Creator

public class Creator
extends java.lang.Object

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.

Version:
1.1 (02/2006)
Author:
Yin Xiong

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

simClasses

java.util.Vector<LPConfigInfo> simClasses
vector that holds the LP config information


gns

java.util.Vector<RoutingInfo> gns
vector that holds the global routing into


lpForFirst

int lpForFirst
number of LPs the first PE will create; =lpForEach+remainder


lpForEach

int lpForEach
number of LPs all the other PEs will create


numPEs

int numPEs
the number of PEs in this mpi world

Constructor Detail

Creator

public Creator()
Method Detail

procConfigFile

public void procConfigFile(java.lang.String configFile,
                           int size)
Create the simulation world using a configuration file.

Parameters:
configFile - String indicating the name of the configuration file.
size - int the size of the mpi world, e.g. number of PEs.

getLPConfigInfo

public java.util.Vector getLPConfigInfo()

getLPNumForFirst

public int getLPNumForFirst()

getLPNumForEach

public int getLPNumForEach()

sendLPInfo

public void sendLPInfo()