keso.core
Class OSService

java.lang.Object
  extended by keso.core.OSService

public final class OSService
extends Object


Constructor Summary
OSService()
           
 
Method Summary
static int getActiveApplicationMode()
          Returns the current application mode.
static void shutdownOS(int error)
          This service may be called to abort the whole system (emergency off).
static void startOS(int appMode)
          The user may use this call to start the OS in a specific application mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait
 

Constructor Detail

OSService

public OSService()
Method Detail

getActiveApplicationMode

public static int getActiveApplicationMode()
Returns the current application mode. May be used to write mode dependant code.


startOS

public static void startOS(int appMode)
The user may use this call to start the OS in a specific application mode. May only be called from outside the OS.


shutdownOS

public static void shutdownOS(int error)
This service may be called to abort the whole system (emergency off). If a ShutdownHook is specified, it is always called with as parameter before the system is shut off.