Package org.medcare.igtl.util
Class Status
java.lang.Object
org.medcare.igtl.util.Status
-
Field Summary
Modifier and TypeFieldDescriptionstatic int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getCode()
** To get client or server status code **** To get client or server status code **** To get client or server status code **int
** To get client or server status code **void
setCode
(int code) ** To set client or server status codevoid
setErrorNamee
(String errorName) ** To set client or server status errorNamevoid
setStatusString
(String statusString) ** To set client or server status statusStringvoid
setSubCode
(int subCode) ** To set client or server status subCode
-
Field Details
-
STATUS_INVALID
public static int STATUS_INVALID -
STATUS_OK
public static int STATUS_OK -
STATUS_UNKNOWN_ERROR
public static int STATUS_UNKNOWN_ERROR -
STATUS_PANICK_MODE
public static int STATUS_PANICK_MODE -
STATUS_NOT_FOUND
public static int STATUS_NOT_FOUND -
STATUS_ACCESS_DENIED
public static int STATUS_ACCESS_DENIED -
STATUS_BUSY
public static int STATUS_BUSY -
STATUS_TIME_OUT
public static int STATUS_TIME_OUT -
STATUS_OVERFLOW
public static int STATUS_OVERFLOW -
STATUS_CHECKSUM_ERROR
public static int STATUS_CHECKSUM_ERROR -
STATUS_CONFIG_ERROR
public static int STATUS_CONFIG_ERROR -
STATUS_RESOURCE_ERROR
public static int STATUS_RESOURCE_ERROR -
STATUS_UNKNOWN_INSTRUCTION
public static int STATUS_UNKNOWN_INSTRUCTION -
STATUS_NOT_READY
public static int STATUS_NOT_READY -
STATUS_MANUAL_MODE
public static int STATUS_MANUAL_MODE -
STATUS_DISABLED
public static int STATUS_DISABLED -
STATUS_NOT_PRESENT
public static int STATUS_NOT_PRESENT -
STATUS_UNKNOWN_VERSION
public static int STATUS_UNKNOWN_VERSION -
STATUS_HARDWARE_FAILURE
public static int STATUS_HARDWARE_FAILURE -
STATUS_SHUT_DOWN
public static int STATUS_SHUT_DOWN -
STATUS_NUM_TYPES
public static int STATUS_NUM_TYPES
-
-
Constructor Details
-
Status
public Status()Constructs a status object with default value STATUS_OK -
Status
public Status(int code) Constructs a a status object with the specified status code- Parameters:
code
- the status code
-
Status
Constructs a a status object with the specified status code- Parameters:
code
-subCode
-errorName
-statusString
-
-
-
Method Details
-
setCode
public void setCode(int code) ** To set client or server status code- Parameters:
code
- **
-
getCode
public int getCode()** To get client or server status code **- Returns:
- the status code
-
setSubCode
public void setSubCode(int subCode) ** To set client or server status subCode- Parameters:
subCode
- **
-
getSubCode
public int getSubCode()** To get client or server status code **- Returns:
- the status subCode
-
setErrorNamee
** To set client or server status errorName- Parameters:
errorName
- **
-
getErrorName
** To get client or server status code **- Returns:
- the status code
-
setStatusString
** To set client or server status statusString- Parameters:
statusString
- **
-
getStatusString
** To get client or server status code **- Returns:
- the status code
-