sam.core
Class Settings.Environment

java.lang.Object
  |
  +--sam.core.Settings.Environment
Enclosing class:
Settings

public static class Settings.Environment
extends java.lang.Object

Repository of various environment-dependant values.


Field Summary
static java.lang.String AUTHOR
          Author of this program as a String
static java.lang.Class BOOT_CLASS
          The main runnable class
static java.lang.String COMPUTER_ARCHITECTURE
          The hardware architecture the current VM is running on
static java.lang.String EMAIL
          Email address of the author, as a String
static java.lang.String GROUP
          The group of the user running the current VM
static java.lang.String HOME
          The home directory of the user running the current VM
static java.lang.String HOME_PAGE
          Home page of the program, as a String
static java.lang.String MICROSOFT_DISLAIMER
          Security disclaimer for users of Microsoft operating system.
static java.lang.String OPERATING_SYSTEM
          The operating system the current VM is running under
static java.lang.String OPERATING_SYSTEM_VERSION
          The operating system version the current VM is running under
static java.lang.String PROGRAM_BINARY
          The command-line prefix to run the program This looks like "java sam.main"
static java.lang.String PROGRAM_NAME
           
static int PROGRAM_VERSION
          SAM version, currently 0.92 (encoded as the 92 integer)
static boolean STDIN_IS_SYNCRHONOUS
          Wether the standard input is synchronous, or not
static java.lang.String TEMPORARY_FILES_SUFFIX
           
static java.lang.String USER
          The user running the current VM
 
Constructor Summary
Settings.Environment()
           
 
Method Summary
static void appendClassPath(java.lang.String classPath)
          Appends a class path to the current class path
static java.lang.String getDefaultTemporary()
          Gets the default temporary directory
static java.lang.String greetings()
          Gets a greeting string, suitable to display e.g.
static boolean isRunningOnMicrosoftOS()
          Checks wether the VM is running under a Microsoft operating system.
static java.lang.String programDescription()
          A human-readable description of the program and its environment
static java.lang.String programVersion()
          SAM version, as a human-readable String
static void warnMicrosoftOperatingSystemOwners()
          Prints a security disclaimer if running under a Microsoft operating system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUTHOR

public static final java.lang.String AUTHOR
Author of this program as a String

See Also:
Constant Field Values

EMAIL

public static final java.lang.String EMAIL
Email address of the author, as a String

See Also:
Constant Field Values

HOME_PAGE

public static final java.lang.String HOME_PAGE
Home page of the program, as a String

See Also:
Constant Field Values

PROGRAM_NAME

public static final java.lang.String PROGRAM_NAME
See Also:
Constant Field Values

PROGRAM_VERSION

public static final int PROGRAM_VERSION
SAM version, currently 0.92 (encoded as the 92 integer)

See Also:
Constant Field Values

USER

public static final java.lang.String USER
The user running the current VM


HOME

public static final java.lang.String HOME
The home directory of the user running the current VM


GROUP

public static final java.lang.String GROUP
The group of the user running the current VM


OPERATING_SYSTEM

public static final java.lang.String OPERATING_SYSTEM
The operating system the current VM is running under


OPERATING_SYSTEM_VERSION

public static final java.lang.String OPERATING_SYSTEM_VERSION
The operating system version the current VM is running under


COMPUTER_ARCHITECTURE

public static final java.lang.String COMPUTER_ARCHITECTURE
The hardware architecture the current VM is running on


STDIN_IS_SYNCRHONOUS

public static final boolean STDIN_IS_SYNCRHONOUS
Wether the standard input is synchronous, or not

See Also:
UserInterface, Constant Field Values

BOOT_CLASS

public static final java.lang.Class BOOT_CLASS
The main runnable class


PROGRAM_BINARY

public static final java.lang.String PROGRAM_BINARY
The command-line prefix to run the program This looks like "java sam.main"


MICROSOFT_DISLAIMER

public static final java.lang.String MICROSOFT_DISLAIMER
Security disclaimer for users of Microsoft operating system.


TEMPORARY_FILES_SUFFIX

public static final java.lang.String TEMPORARY_FILES_SUFFIX
See Also:
Constant Field Values
Constructor Detail

Settings.Environment

public Settings.Environment()
Method Detail

programVersion

public static java.lang.String programVersion()
SAM version, as a human-readable String

See Also:
PROGRAM_VERSION

greetings

public static final java.lang.String greetings()
Gets a greeting string, suitable to display e.g. at startup


programDescription

public static java.lang.String programDescription()
A human-readable description of the program and its environment


isRunningOnMicrosoftOS

public static boolean isRunningOnMicrosoftOS()
Checks wether the VM is running under a Microsoft operating system.


warnMicrosoftOperatingSystemOwners

public static void warnMicrosoftOperatingSystemOwners()
Prints a security disclaimer if running under a Microsoft operating system.

See Also:
MICROSOFT_DISLAIMER

appendClassPath

public static void appendClassPath(java.lang.String classPath)
Appends a class path to the current class path


getDefaultTemporary

public static java.lang.String getDefaultTemporary()
Gets the default temporary directory