Nengo.ca

ca.nengo.util
Class Environment

java.lang.Object
  extended by ca.nengo.util.Environment

public abstract class Environment
extends java.lang.Object

Provides information about the context in which the code is running.


Field Summary
static java.lang.String USER_INTERFACE
          Name of system property underlying inUserInterface()
static java.lang.String WORKING_DIRECTORY
          Name of String property that contains path of user's working directory
 
Constructor Summary
Environment()
           
 
Method Summary
static boolean inUserInterface()
           
static void setUserInterface(boolean inUI)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USER_INTERFACE

public static java.lang.String USER_INTERFACE
Name of system property underlying inUserInterface()


WORKING_DIRECTORY

public static java.lang.String WORKING_DIRECTORY
Name of String property that contains path of user's working directory

Constructor Detail

Environment

public Environment()
Method Detail

inUserInterface

public static boolean inUserInterface()
Returns:
True if the system is running within a user interface (default is false; can be configured with system property "user-interface" = "true")

setUserInterface

public static void setUserInterface(boolean inUI)

Nengo.ca