org.eclipse.ohf.stem.internal.data
Class Main

java.lang.Object
  extended by org.eclipse.ohf.stem.internal.data.Main

public class Main
extends java.lang.Object

This class is the Main entry point to the generation of Graphs and Models from internal data sets.


Field Summary
static boolean addAfrica
          continent groups
static boolean addALL
          try this if you are running on a supercomputer!!
static boolean addAntarctica
          antartic
static boolean addAsia
          asia
static boolean addDefault
          the default list of countries
static boolean addEurope
          europe
static boolean addMiddleEast
          middleEast
static boolean addNewOnly
          new countries add (for testing - must configure)
static boolean addNorthAmerica
          North America
static boolean addOceanIslands
          islands
static boolean addSouthAmerica
          South America
static boolean addUserList
          your own special list goes here
static java.lang.String[] africa
          Static String[] identifying all countries by continent
static java.lang.String[] antarctica
          Static String[] identifying all countries by continent
static java.lang.String[] asia
          Static String[] identifying all countries by continent
static java.util.HashSet<java.lang.String> countries
          The list of countries will be collected here
static java.lang.String[] defaultList
          Default is USA and MEX without CAN
static boolean displayList
          Set this to true to display a list of property files that are used to build scenario.
static java.lang.String[] europe
          Static String[] identifying all countries by continent
static java.lang.String GEOGRAPHY_FILE_URI_PREFIX
          This is the prefix of the platform URI for geography graphs and models
static java.lang.String ID_GRAPH_CATAGORY
          The id of the Graph catagory
static java.lang.String ID_GRAPH_GEOGRAPHY_CATAGORY
          The id of the Geography catagory
static java.lang.String ID_GRAPH_GEOGRAPHY_POLITICAL_CATAGORY
          The id of the Political catagory
static java.lang.String ID_GRAPH_GEOGRAPHY_POLITICAL_COUNTRIES_CATAGORY
          The id of the Countries catagory
static java.lang.String ID_MODEL_CATAGORY
          The id of the Model catagory
static java.lang.String ID_MODEL_GEOGRAPHY_CATAGORY
          The id of the Geography catagory
static java.lang.String ID_MODEL_GEOGRAPHY_POLITICAL_CATAGORY
          The id of the Poltical catagory
static java.lang.String ID_MODEL_GEOGRAPHY_POLITICAL_COUNTRIES_CATAGORY
          The id of the Countries catagory
static java.lang.String[] middleEast
          Static String[] identifying all countries by continent or Region
static java.lang.String[] newCountries
          Define the set of countries to work with You need to define an Infector file for one of the specified countries.
static java.lang.String[] northAmerica
          Static String[] identifying all countries by continent
static java.lang.String[] oceanIslands
          Static String[] identifying all countries by continent
static java.lang.String ROOT_PROPERTY_FILES
          This is the path to the root directory of the property files that define the graphs.
static java.lang.String ROOT_SERIALIZED_FILES
          This is the path to the root directory of the serialized files
static java.lang.String[] southAmerica
          Static String[] identifying all countries by continent
static java.lang.String UI_COUNTRIES_CATAGORY_NAME
          The NLS key for the countries catagory name
static java.lang.String UI_GEOGRAPHY_CATAGORY_NAME
          The NLS key for the geography catagory name
static java.lang.String UI_POLITICAL_CATAGORY_NAME
          The NLS key for the political catagory name
static java.lang.String[] userList
          UserList (for example "AUS" )
 
Constructor Summary
Main()
           
 
Method Summary
static java.util.List<java.io.File> getPropertyFiles(java.io.File directory)
           
static void main(java.lang.String[] args)
           
static java.util.HashSet<java.lang.String> moreEntries(java.lang.String[] c)
          collect the countries to display
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

newCountries

public static final java.lang.String[] newCountries
Define the set of countries to work with You need to define an Infector file for one of the specified countries. If you don't things will display but no disease will start spreading. SpanishFlu_Infector_XXX.properties Uncomment one of the following to either generate the world or a selected set of countries. If a commonborder country is not wanted list them after the list of countries, proceeded with "!"


countries

public static java.util.HashSet<java.lang.String> countries
The list of countries will be collected here


addALL

public static final boolean addALL
try this if you are running on a supercomputer!!

See Also:
Constant Field Values

addDefault

public static final boolean addDefault
the default list of countries

See Also:
Constant Field Values

addUserList

public static final boolean addUserList
your own special list goes here

See Also:
Constant Field Values

addNewOnly

public static final boolean addNewOnly
new countries add (for testing - must configure)

See Also:
Constant Field Values

addAfrica

public static final boolean addAfrica
continent groups

See Also:
Constant Field Values

addAsia

public static final boolean addAsia
asia

See Also:
Constant Field Values

addEurope

public static final boolean addEurope
europe

See Also:
Constant Field Values

addMiddleEast

public static final boolean addMiddleEast
middleEast

See Also:
Constant Field Values

addNorthAmerica

public static final boolean addNorthAmerica
North America

See Also:
Constant Field Values

addSouthAmerica

public static final boolean addSouthAmerica
South America

See Also:
Constant Field Values

addOceanIslands

public static final boolean addOceanIslands
islands

See Also:
Constant Field Values

addAntarctica

public static final boolean addAntarctica
antartic

See Also:
Constant Field Values

displayList

public static final boolean displayList
Set this to true to display a list of property files that are used to build scenario.

See Also:
Constant Field Values

defaultList

public static final java.lang.String[] defaultList
Default is USA and MEX without CAN


userList

public static final java.lang.String[] userList
UserList (for example "AUS" )


africa

public static final java.lang.String[] africa
Static String[] identifying all countries by continent


antarctica

public static final java.lang.String[] antarctica
Static String[] identifying all countries by continent


asia

public static final java.lang.String[] asia
Static String[] identifying all countries by continent


europe

public static final java.lang.String[] europe
Static String[] identifying all countries by continent


middleEast

public static final java.lang.String[] middleEast
Static String[] identifying all countries by continent or Region


northAmerica

public static final java.lang.String[] northAmerica
Static String[] identifying all countries by continent


oceanIslands

public static final java.lang.String[] oceanIslands
Static String[] identifying all countries by continent


southAmerica

public static final java.lang.String[] southAmerica
Static String[] identifying all countries by continent


ROOT_PROPERTY_FILES

public static final java.lang.String ROOT_PROPERTY_FILES
This is the path to the root directory of the property files that define the graphs.


ROOT_SERIALIZED_FILES

public static final java.lang.String ROOT_SERIALIZED_FILES
This is the path to the root directory of the serialized files


GEOGRAPHY_FILE_URI_PREFIX

public static final java.lang.String GEOGRAPHY_FILE_URI_PREFIX
This is the prefix of the platform URI for geography graphs and models

See Also:
Constant Field Values

ID_GRAPH_CATAGORY

public static final java.lang.String ID_GRAPH_CATAGORY
The id of the Graph catagory

See Also:
Constant Field Values

ID_GRAPH_GEOGRAPHY_CATAGORY

public static final java.lang.String ID_GRAPH_GEOGRAPHY_CATAGORY
The id of the Geography catagory

See Also:
Constant Field Values

ID_GRAPH_GEOGRAPHY_POLITICAL_CATAGORY

public static final java.lang.String ID_GRAPH_GEOGRAPHY_POLITICAL_CATAGORY
The id of the Political catagory

See Also:
Constant Field Values

ID_GRAPH_GEOGRAPHY_POLITICAL_COUNTRIES_CATAGORY

public static final java.lang.String ID_GRAPH_GEOGRAPHY_POLITICAL_COUNTRIES_CATAGORY
The id of the Countries catagory

See Also:
Constant Field Values

UI_GEOGRAPHY_CATAGORY_NAME

public static final java.lang.String UI_GEOGRAPHY_CATAGORY_NAME
The NLS key for the geography catagory name

See Also:
Constant Field Values

UI_POLITICAL_CATAGORY_NAME

public static final java.lang.String UI_POLITICAL_CATAGORY_NAME
The NLS key for the political catagory name

See Also:
Constant Field Values

UI_COUNTRIES_CATAGORY_NAME

public static final java.lang.String UI_COUNTRIES_CATAGORY_NAME
The NLS key for the countries catagory name

See Also:
Constant Field Values

ID_MODEL_CATAGORY

public static final java.lang.String ID_MODEL_CATAGORY
The id of the Model catagory

See Also:
Constant Field Values

ID_MODEL_GEOGRAPHY_CATAGORY

public static final java.lang.String ID_MODEL_GEOGRAPHY_CATAGORY
The id of the Geography catagory

See Also:
Constant Field Values

ID_MODEL_GEOGRAPHY_POLITICAL_CATAGORY

public static final java.lang.String ID_MODEL_GEOGRAPHY_POLITICAL_CATAGORY
The id of the Poltical catagory

See Also:
Constant Field Values

ID_MODEL_GEOGRAPHY_POLITICAL_COUNTRIES_CATAGORY

public static final java.lang.String ID_MODEL_GEOGRAPHY_POLITICAL_COUNTRIES_CATAGORY
The id of the Countries catagory

See Also:
Constant Field Values
Constructor Detail

Main

public Main()
Method Detail

main

public static void main(java.lang.String[] args)
Parameters:
args - none

getPropertyFiles

public static java.util.List<java.io.File> getPropertyFiles(java.io.File directory)
Parameters:
directory - a directory containing graph property files and other directories that contain graph property files.
Returns:
a list of the property files that contain graph defintions

moreEntries

public static java.util.HashSet<java.lang.String> moreEntries(java.lang.String[] c)
collect the countries to display

Parameters:
c -
Returns:
the set of countries to display