|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectNetworkManager
public class NetworkManager
The NetworkManager class is responsible for instantiating a network instance. It also initializes the StatisticalData class to re-establish its variables. This class also initializes the configuration parameters in the IConstants class by the input parameters in the system retrieve from the input file.
The NetworkManager class implements the Singleton Design Pattern.
Field Summary | |
---|---|
private static int |
curSet
Keeps track of the current simulating network to read the relevant input parameters. |
private static HelpingUtility |
helpUtility
An instance of the HelpingUtility class to re-initialize the random seed and read
the input file. |
private static NetworkManager |
netManager
An static instance of the NetworkManager class which is useful for the implementation of
Singleton design pattern. |
private static Network |
network
An instance of the Network class to refer to the current simulating network. |
private static java.lang.String |
paramFile
Name of the input configuration file. |
private static StatisticalData |
statData
An instance of the StatisticalData class to perform the related statistical
computations. |
private static double |
warm_up_percentage
Default percentage of warm_up_cycles to that of total simulation cycles. |
Constructor Summary | |
---|---|
NetworkManager(java.lang.String parameterFile)
Constructor of the NetworkManager class. |
Method Summary | |
---|---|
boolean |
createNextNetwork()
Creates a Network class instance and loads the related configuration parameters in the IConstants class. |
static HelpingUtility |
getHelpingUtility()
Returns the helpUtility variable of this class. |
static NetworkManager |
getInstance()
Returns a NetworkManager class instance, if not already defined. |
static NetworkManager |
getInstance(java.lang.String paramFile)
Returns a NetworkManager class instance, if not already defined. |
static Network |
getNetworkInstance()
Returns the network variable of this class. |
static StatisticalData |
getStatDataInstance()
Returns the statData variable of this class. |
void |
initializeNetwork()
Initializes the current simulating network and the statistical counters. |
private void |
loadSet(java.util.Vector set)
Loads the configuration parameters in the IConstants class for the current simulating network. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static NetworkManager netManager
NetworkManager
class which is useful for the implementation of
Singleton design pattern.
private static Network network
Network
class to refer to the current simulating network.
private static StatisticalData statData
StatisticalData
class to perform the related statistical
computations.
private static HelpingUtility helpUtility
HelpingUtility
class to re-initialize the random seed and read
the input file.
private static int curSet
private static java.lang.String paramFile
private static double warm_up_percentage
Constructor Detail |
---|
public NetworkManager(java.lang.String parameterFile)
parameterFile
- Name of the input configuration fileHelpingUtility
Method Detail |
---|
public boolean createNextNetwork()
IConstants
,
HelpingUtility
,
Network
,
StatisticalData
public void initializeNetwork()
Network
,
StatisticalData
private void loadSet(java.util.Vector set)
set
- total set of pairs of input parameter and its valuepublic static NetworkManager getInstance(java.lang.String paramFile)
paramFile
- name of the input configuration file
public static NetworkManager getInstance()
public static Network getNetworkInstance()
public static HelpingUtility getHelpingUtility()
HelpingUtility
public static StatisticalData getStatDataInstance()
StatisticalData
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |