|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--physis.core.PHYSIS
This is the main starter class. It has the main method as the entry point of the system.
Other alternative to run the system is running this class as a thread. It allows full controll over the processing.
The name of the config file should be set very first!
(the main method starts a thread as well)
CRC
1. instantiating the system - Configuration, Population, statistics, visualisation
2. do the updates - Population, statistics, visualisation, viewers
| Field Summary | |
private static java.lang.String |
config_file
The name of the file containing the configuration parameters (with full path). |
static Environment |
environment
Mainly for performance reasons this reference can be publicly available this way: PHYSIS.environment The default environment is EnvironmentImpl is instantiated by PHYSIS. |
private long |
max_updates
The maximum number of possible updates is defined in the configuration file. |
private static PHYSIS |
physis
The instance of the system. |
private Population |
population
There's one population in one instance of Physis. |
private Statistics |
statistics
The statistics-generator subsystem. |
private Triggers |
triggers
The container of predefined events, operations. |
private long |
updatecount
Counts the number of updates. |
private Viewer[] |
viewers
Several different viewers can be attached to the system. |
| Fields inherited from class java.lang.Thread |
contextClassLoader, daemon, eetop, group, inheritableThreadLocals, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadLocals, threadQ |
| Constructor Summary | |
private |
PHYSIS(java.lang.String config_file)
|
| Method Summary | |
static PHYSIS |
getInstance()
This returns an instance of the system if the full path of the configuration file is correctly set. |
Population |
getPopulation()
Returns the instance's population. |
long |
getUpdateCount()
Returns the number of the current update cycle. |
static void |
main(java.lang.String[] args)
This is the main entry point. |
void |
run()
The thread's run method. |
static void |
setConfigFileName(java.lang.String filename)
Sets the configuration file. |
void |
setViewers(Viewer[] viewers)
The viewers can be set dynamically. |
| Methods inherited from class java.lang.Thread |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static Environment environment
private static java.lang.String config_file
private static PHYSIS physis
private Population population
private Triggers triggers
private Statistics statistics
private Viewer[] viewers
private long updatecount
private long max_updates
| Constructor Detail |
private PHYSIS(java.lang.String config_file)
| Method Detail |
public static void main(java.lang.String[] args)
public static void setConfigFileName(java.lang.String filename)
public static PHYSIS getInstance()
public void run()
run in class java.lang.Threadpublic Population getPopulation()
public long getUpdateCount()
public void setViewers(Viewer[] viewers)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||