gsim.core
Class CoreFactory

java.lang.Object
  extended by gsim.core.CoreFactory

public abstract class CoreFactory
extends java.lang.Object

The CoreFactory is an abstract class that is implemented by concrete factories handling the local or remote mode. If the transportation mode is not set, local is used by default.

Author:
Stephan

Field Summary
static java.lang.String LOCAL
           
static java.lang.String REMOTE
           
 
Method Summary
abstract  Core createCore()
           
static CoreFactory getInstance()
          Get a concrete instance of this abstract factory.
static java.lang.String getMode()
          Returns the current transportation mode.
static void setTransportationMode(java.lang.String mode)
          Sets the transportation mode
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCAL

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

REMOTE

public static final java.lang.String REMOTE
See Also:
Constant Field Values
Method Detail

createCore

public abstract Core createCore()

getInstance

public static CoreFactory getInstance()
Get a concrete instance of this abstract factory.

Returns:
CoreFactory

getMode

public static java.lang.String getMode()
Returns the current transportation mode.

Returns:
String

setTransportationMode

public static void setTransportationMode(java.lang.String mode)
Sets the transportation mode

Parameters:
mode - one of REMOTE or LOCAL constants.