edu.indiana.iucbrf.cbrsystem
Class Context

java.lang.Object
  extended by edu.indiana.iucbrf.cbrsystem.Context
All Implemented Interfaces:
java.io.Serializable

public class Context
extends java.lang.Object
implements java.io.Serializable

This class defines a context for the system. A context specifies current running conditions. For example, a system may be in "Normal" or "Testing" context. System designers may also construct custom contexts, which can be used to create different modes of operation for the system, including activating and deactivating cases under certain conditions.

See Also:
Serialized Form

Field Summary
static Context LEAVE_ONE_OUT_TESTING_CONTEXT
          A Context for system testing using the leave-one-out method.
static Context NORMAL_CONTEXT
          A Context for normal system operations.
static Context TESTING_CONTEXT
          A Context for system testing.
 
Constructor Summary
protected Context()
           
  Context(java.lang.String name)
          Creates new Context
 
Method Summary
 java.lang.String toString()
          Provide a String representation of this Context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NORMAL_CONTEXT

public static final Context NORMAL_CONTEXT
A Context for normal system operations.


TESTING_CONTEXT

public static final Context TESTING_CONTEXT
A Context for system testing.


LEAVE_ONE_OUT_TESTING_CONTEXT

public static final Context LEAVE_ONE_OUT_TESTING_CONTEXT
A Context for system testing using the leave-one-out method.

Constructor Detail

Context

protected Context()

Context

public Context(java.lang.String name)
Creates new Context

Method Detail

toString

public java.lang.String toString()
Provide a String representation of this Context.

Overrides:
toString in class java.lang.Object