org.omegahat.Environment.System
Class Globals

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--java.util.Properties
                    |
                    +--org.omegahat.Environment.System.Globals
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class Globals
extends java.util.Properties

This is the class that contains the global information about the running Omegahat process. This allows arbitrary objects to get a handle on the global or system-wide variables including the (primary) evaluator manager, the applet itself, etc. Note that we extend the class Properties to allow embedding other properties rather than fields.

See Also:
Serialized Form

Inner classes inherited from class java.util.Map
java.util.Map.Entry
 
Field Summary
protected static java.applet.Applet applet
           
protected static java.lang.String[] commandLineArgs
           
protected static Evaluator evaluator
           
protected static EvaluatorManager manager
           
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
Globals()
           
 
Method Summary
static java.applet.Applet applet()
           
static java.applet.Applet applet(java.applet.Applet a)
           
static java.lang.String[] args()
           
static java.lang.String[] args(java.lang.String[] args)
           
static void error(java.lang.String msg)
           
static Evaluator evaluator()
           
static Evaluator evaluator(boolean force)
           
static Evaluator evaluator(Evaluator e)
           
static EvaluatorManager manager()
           
static EvaluatorManager manager(EvaluatorManager m)
           
static java.lang.String[] stringList(java.lang.String list)
           
static java.lang.String[] stringList(java.lang.String list, char sep)
          More general form of stringList that takes a different separator.
static void warning(java.lang.String msg)
           
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, propertyNames, save, setProperty, store
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

applet

protected static java.applet.Applet applet

manager

protected static EvaluatorManager manager

evaluator

protected static Evaluator evaluator

commandLineArgs

protected static java.lang.String[] commandLineArgs
Constructor Detail

Globals

public Globals()
Method Detail

applet

public static java.applet.Applet applet()

applet

public static java.applet.Applet applet(java.applet.Applet a)

manager

public static EvaluatorManager manager()

manager

public static EvaluatorManager manager(EvaluatorManager m)

args

public static java.lang.String[] args()

args

public static java.lang.String[] args(java.lang.String[] args)

error

public static void error(java.lang.String msg)

warning

public static void warning(java.lang.String msg)

evaluator

public static Evaluator evaluator()
                           throws java.lang.ClassNotFoundException

evaluator

public static Evaluator evaluator(boolean force)
                           throws java.lang.ClassNotFoundException

evaluator

public static Evaluator evaluator(Evaluator e)
                           throws java.lang.ClassNotFoundException

stringList

public static java.lang.String[] stringList(java.lang.String list)

stringList

public static java.lang.String[] stringList(java.lang.String list,
                                            char sep)
More general form of stringList that takes a different separator.
Parameters:
list - string containing the components to be split.
sep - the separator used to split the components.