class Midwife
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static int |
activeAgents |
(package private) static java.lang.String |
AGENT_FILE_NAME |
(package private) static int |
BACKLOG |
private static network.GetSubnetIPAs |
cluster |
(package private) static int |
COMMS_PORT_BASE |
private static gui.Console |
console |
private static java.lang.String[] |
consoleArgs |
(package private) static long |
FIXED_SEED |
private static java.util.ArrayList<java.lang.String> |
ipaSubnet |
private static network.GetLocalIPA |
localHost |
private static birthing.BirthRoom |
midwife |
private static java.lang.String |
myIPA |
private static java.util.ArrayList<java.lang.String> |
oldIPASubnet |
private static java.lang.String |
osTskMgr |
(package private) static int |
PING_PORT |
private static double |
q |
private static double |
r |
(package private) static long |
RANDOM_SEED |
static java.util.Random |
rng |
(package private) static long |
RNG_SEED |
(package private) static int |
SEC1 |
(package private) static int |
SEC10 |
(package private) static int |
SEC20 |
(package private) static int |
SEC30 |
private static double |
t |
private static java.util.Timer |
timerAgentList |
private static java.util.Timer |
timerGUIUpdate |
private static java.util.Timer |
timerIPAList |
private static java.util.Timer |
timerMWLoads |
(package private) static boolean |
USE_FIXED |
Constructor and Description |
---|
Midwife() |
Modifier and Type | Method and Description |
---|---|
static void |
findAgentCounts(java.lang.String osTskMgr)
this method requests the midwife to get the count of agents on this
CPU and stores the result in the local variable activeAgents.
|
static void |
findClusterIPAs()
this method queries the cluster for active IPAs and stores the result
in the local variable ipaSubnet.
|
static void |
findLocalIPA()
this method queries the local host to find its IPA.
|
static java.lang.String |
getOperatingSystemName()
this method returns, as a String, the name of the operating system.
|
static java.lang.String |
getOSTaskMgrExec(java.lang.String namedOS)
this method returns the name of the OS Task Manager executable.
|
static void |
main(java.lang.String[] arg)
this is the main method.
|
static void |
reportSubnetIPAs()
this reports the subnet surrounding the host IPA.
|
static void |
setupEnvironment()
this method initializes the operating environment.
|
void |
template()
this method does nothing.
|
static void |
timerAgents(java.util.Timer timerAgentList,
int delay,
double t)
this is a timer to periodically reassess the current count of Agents
under this Midwife's local care.
|
static void |
timerGUI(java.util.Timer timerGUIUpdate,
int delay,
double t)
this is a timer to periodically update the GUI mode display.
|
static void |
timerIPAs(java.util.Timer timerIPAList,
int delay,
double r)
this is a timer to periodically update the cluster IPA list.
|
static void |
timerMidwifeLoads(java.util.Timer timerMWLoads,
int delay,
double q)
this is a timer to periodically make the BirthRoom midwife update
the contents of its "others" Array List.
|
static final boolean USE_FIXED
static final long FIXED_SEED
static final long RANDOM_SEED
static final long RNG_SEED
static final int COMMS_PORT_BASE
static final int PING_PORT
static final int BACKLOG
static final java.lang.String AGENT_FILE_NAME
static final int SEC1
static final int SEC10
static final int SEC20
static final int SEC30
private static java.lang.String[] consoleArgs
private static int activeAgents
private static double t
private static double q
private static double r
private static java.lang.String myIPA
private static java.util.ArrayList<java.lang.String> ipaSubnet
private static java.util.ArrayList<java.lang.String> oldIPASubnet
private static java.lang.String osTskMgr
private static network.GetLocalIPA localHost
private static network.GetSubnetIPAs cluster
private static birthing.BirthRoom midwife
private static java.util.Timer timerGUIUpdate
private static java.util.Timer timerAgentList
private static java.util.Timer timerIPAList
private static java.util.Timer timerMWLoads
private static gui.Console console
public static java.util.Random rng
public static void findAgentCounts(java.lang.String osTskMgr)
public static void findClusterIPAs()
public static void findLocalIPA()
public static java.lang.String getOperatingSystemName()
public static java.lang.String getOSTaskMgrExec(java.lang.String namedOS)
public static void reportSubnetIPAs()
public static void setupEnvironment()
public static void timerAgents(java.util.Timer timerAgentList, int delay, double t)
public static void timerGUI(java.util.Timer timerGUIUpdate, int delay, double t)
public static void timerMidwifeLoads(java.util.Timer timerMWLoads, int delay, double q)
public static void timerIPAs(java.util.Timer timerIPAList, int delay, double r)
public static void main(java.lang.String[] arg)
public void template()