kaos.robots.util
Class Reason

java.lang.Object
  extended by kaos.robots.util.Reason
All Implemented Interfaces:
java.io.Serializable

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

The Reason class provides information as to the reason of an error or unexpected action.

See Also:
Serialized Form

Field Summary
static int CAMERA_ERROR
           
static int PATH_PLANNING_ERROR
           
static int POLICY_VIOLATION
           
static int SERVICE_FAILURE
           
 
Constructor Summary
Reason(int code, java.lang.String description)
           
 
Method Summary
static java.lang.String convertReasonCode(int code)
           
 int getCode()
           
 java.lang.String getDescription()
           
 java.lang.Exception getException()
           
 void setException(java.lang.Exception e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POLICY_VIOLATION

public static final int POLICY_VIOLATION
See Also:
Constant Field Values

PATH_PLANNING_ERROR

public static final int PATH_PLANNING_ERROR
See Also:
Constant Field Values

CAMERA_ERROR

public static final int CAMERA_ERROR
See Also:
Constant Field Values

SERVICE_FAILURE

public static final int SERVICE_FAILURE
See Also:
Constant Field Values
Constructor Detail

Reason

public Reason(int code,
              java.lang.String description)
Method Detail

convertReasonCode

public static final java.lang.String convertReasonCode(int code)

getCode

public int getCode()

getDescription

public java.lang.String getDescription()

setException

public void setException(java.lang.Exception e)

getException

public java.lang.Exception getException()