public class Command extends DicomObject
For every request command their is static factory method that takes as it's arguments tha mandatory tags of the request. For every response command their is static factory method that takes as it's arguments the corresponding request command and any mandatory parameters not implicitly supplied by the corresponding request.
This class also has some setters/getters for tag values common to commands such as status,affectedSOPClassUID,affectedSOPInstanceUID, ... .
| Modifier and Type | Field and Description |
|---|---|
static int |
C_CANCEL_REQUEST |
static int |
C_ECHO_REQUEST |
static int |
C_ECHO_RESPONSE |
static int |
C_FIND_REQUEST |
static int |
C_FIND_RESPONSE |
static int |
C_GET_REQUEST |
static int |
C_GET_RESPONSE |
static int |
C_MOVE_REQUEST |
static int |
C_MOVE_RESPONSE |
static int |
C_STORE_REQUEST |
static int |
C_STORE_RESPONSE |
static int |
HIGH_PRIORITY |
static int |
LOW_PRIORITY |
static int |
MEDIUM_PRIORITY |
static int |
N_ACTION_REQUEST |
static int |
N_ACTION_RESPONSE |
static int |
N_CREATE_REQUEST |
static int |
N_CREATE_RESPONSE |
static int |
N_DELETE_REQUEST |
static int |
N_DELETE_RESPONSE |
static int |
N_EVENT_REPORT_REQUEST |
static int |
N_EVENT_REPORT_RESPONSE |
static int |
N_GET_REQUEST |
static int |
N_GET_RESPONSE |
static int |
N_SET_REQUEST |
static int |
N_SET_RESPONSE |
log| Modifier and Type | Method and Description |
|---|---|
static Command |
createCCancel(Command cReq) |
static Command |
createCEchoReq(int messageID,
int affectedSOPClassUID) |
static Command |
createCEchoRes(Command cechoreqcmd,
int status) |
static Command |
createCFindReq(int messageID,
int affectedSOPClassUID,
int priority) |
static Command |
createCFindRes(Command cFindReq,
int status,
boolean identifier) |
static Command |
createCGetReq(int messageID,
int affectedSOPClassUID,
int priority) |
static Command |
createCGetRes(Command cGetReq,
int status,
boolean identifier) |
static Command |
createCMoveReq(int messageID,
int affectedSOPClassUID,
int priority,
java.lang.String moveDestinationAE) |
static Command |
createCMoveRes(Command cMoveReq,
int status,
boolean identifier) |
static Command |
createCStoreReq(int messageID,
int affectedSOPClassUID,
int priority,
java.lang.String affectedSOPInstanceUID) |
static Command |
createCStoreRes(Command cStoreReq,
int status) |
static Command |
createNActionReq(int messageID,
int requestedSOPClassUID,
java.lang.String requestedSOPInstanceUID,
int actionTypeID,
boolean identifier) |
static Command |
createNActionRes(Command nActionReq,
int status,
boolean identifier) |
static Command |
createNCreateReq(int messageID,
int affectedSOPClassUID,
java.lang.String affectedSOPInstanceUID,
boolean identifier) |
static Command |
createNCreateRes(Command nCreateReq,
int status,
boolean identifier) |
static Command |
createNDeleteReq(int messageID,
int requestedSOPClassUID,
java.lang.String requestedSOPInstanceUID) |
static Command |
createNDeleteRes(Command nDeleteReq,
int status) |
static Command |
createNEventReportReq(int messageID,
int affectedSOPClassUID,
java.lang.String affectedSOPInstanceUID,
int eventTypeID,
boolean identifier) |
static Command |
createNEventReportRes(Command nEventReportReq,
int status,
boolean identifier) |
static Command |
createNGetReq(int messageID,
int requestedSOPClassUID,
java.lang.String requestedSOPInstanceUID) |
static Command |
createNGetRes(Command nGetReq,
int status,
boolean identifier) |
static Command |
createNSetReq(int messageID,
int requestedSOPClassUID,
java.lang.String requestedSOPInstanceUID) |
static Command |
createNSetRes(Command nSetReq,
int status,
boolean identifier) |
int |
getActionTypeID() |
int |
getAffectedSOPClass() |
java.lang.String |
getAffectedSOPInstance() |
java.lang.String |
getCommandName() |
int |
getCommandType() |
int |
getCompletedSuboperations() |
int |
getEventTypeID() |
int |
getFailedSuboperations() |
int |
getMessageID() |
java.lang.String |
getMoveOriginatorAE() |
int |
getMoveOriginatorID() |
int |
getPriority() |
int |
getRemainingSuboperations() |
int |
getRequestedSOPClass() |
java.lang.String |
getRequestedSOPInstance() |
int |
getResponseMessageID() |
int |
getStatus() |
int |
getWarningSuboperations() |
boolean |
hasData() |
void |
hasData(boolean b) |
void |
setActionTypeID(int actionTypeID) |
void |
setAffectedSOPClass(int affectedSOPClassUID) |
void |
setAffectedSOPInstance(java.lang.String sopInstanceUID) |
void |
setCommandType(int commandType) |
void |
setCompletedSuboperations(int completedSubops) |
void |
setEventTypeID(int eventTypeID) |
void |
setFailedSuboperations(int failedSubops) |
void |
setMessageID(int messageID) |
void |
setMoveDestination(java.lang.String moveDestinationAE) |
void |
setMoveOriginatorAE(java.lang.String moveAE) |
void |
setMoveOriginatorMessageID(int moveOriginatorMessageID) |
void |
setPriority(int priority) |
void |
setRemainingSuboperations(int remainingSubops) |
void |
setRequestedSOPClass(int requestedSOPClassUID) |
void |
setRequestedSOPInstance(java.lang.String sopInstanceUID) |
void |
setResponseMessageID(int messageID) |
void |
setStatus(int status) |
void |
setWarningSuboperations(int warningSubops) |
addATValue_ge, addATValue, addBigDecimal_ge, addBigDecimal_ge, addBigDecimal, addBulkDataReference_ge, addBulkDataReference_ge, addBulkDataReference, addByteArray_ge, addByteArray_ge, addByteArray, addBytes_ge, addBytes_ge, addBytes, addDouble_ge, addDouble_ge, addDouble, addDoubles_ge, addDoubles_ge, addDoubles, addFloat_ge, addFloat_ge, addFloat, addFloats_ge, addFloats_ge, addFloats, addInteger_ge, addInteger_ge, addInteger, addLong_ge, addLong_ge, addLong, addPersonName_ge, addPersonName_ge, addPersonName_ge, addPersonName_ge, addPersonName, addPersonName, addSequenceItem_ge, addSequenceItem_ge, addSequenceItem, addShort_ge, addShort_ge, addShort, addString_ge, addString_ge, addString, append_ge, append_ge, append, calculateOffset, deleteItem_ge, deleteItem_ge, deleteItem_ge, deleteItem_ge, deleteItem, deleteItem, dicomCharsets, dumpVRs, dumpVRs, dumpVRs, get_ge, get_ge, get_ge, get_ge, get, get, getATValue_ge, getATValue, getBigDecimal_ge, getBigDecimal_ge, getBigDecimal, getBulkDataReference_ge, getBulkDataReference_ge, getBulkDataReference, getByteArray_ge, getByteArray_ge, getByteArray, getBytes_ge, getBytes_ge, getBytes, getDataElement, getDataElement, getDataElement, getDouble_ge, getDouble_ge, getDouble, getDoubles_ge, getDoubles_ge, getDoubles, getFileMetaInformation, getFloat_ge, getFloat_ge, getFloat, getFloats_ge, getFloats_ge, getFloats, getI_ge, getI_ge, getI, getI, getInteger_ge, getInteger_ge, getInteger, getLong_ge, getLong_ge, getLong, getOffset, getParent, getPersonName_ge, getPersonName_ge, getPersonName, getPreamble, getS_ge, getS_ge, getS, getS, getSeqItemLenState, getSeqLenState_ge, getSeqLenState_ge, getSeqLenState, getSequenceItem_ge, getSequenceItem_ge, getSequenceItem, getShort_ge, getShort_ge, getShort, getSize_ge, getSize_ge, getSize, getString_ge, getString_ge, getString_ge, getString_ge, getString, getString, getType_ge, getType_ge, getType, newDataElement_ge, newDataElement_ge, newDataElement, read, read, read, remove_ge, remove_ge, remove, set_ge, set_ge, set_ge, set_ge, set, set, setATValue_ge, setATValue, setBigDecimal_ge, setBigDecimal_ge, setBigDecimal, setBulkDataReference_ge, setBulkDataReference_ge, setBulkDataReference, setByteArray_ge, setByteArray_ge, setByteArray, setBytes_ge, setBytes_ge, setBytes, setDouble_ge, setDouble_ge, setDouble, setDoubles_ge, setDoubles_ge, setDoubles, setFileMetaInformation, setFloat_ge, setFloat_ge, setFloat, setFloats_ge, setFloats_ge, setFloats, setInteger_ge, setInteger_ge, setInteger, setLong_ge, setLong_ge, setLong, setPersonName_ge, setPersonName_ge, setPersonName_ge, setPersonName_ge, setPersonName, setPersonName, setPreamble, setSeqItemLenState, setSeqLenState_ge, setSeqLenState_ge, setSeqLenState, setSequenceItem_ge, setSequenceItem_ge, setSequenceItem, setShort_ge, setShort_ge, setShort, setString_ge, setString_ge, setString, setType_ge, setType_ge, setType, write, write, writeaddGroups, clear, containsGroup, copyGroup, enumerateVRs, enumerateVRs, isEmpty, numberOfElements, numberOfGroups, removeGrouppublic static final int N_EVENT_REPORT_REQUEST
public static final int N_EVENT_REPORT_RESPONSE
public static final int N_GET_REQUEST
public static final int N_GET_RESPONSE
public static final int N_SET_REQUEST
public static final int N_SET_RESPONSE
public static final int N_ACTION_REQUEST
public static final int N_ACTION_RESPONSE
public static final int N_CREATE_REQUEST
public static final int N_CREATE_RESPONSE
public static final int N_DELETE_REQUEST
public static final int N_DELETE_RESPONSE
public static final int C_STORE_REQUEST
public static final int C_STORE_RESPONSE
public static final int C_GET_REQUEST
public static final int C_GET_RESPONSE
public static final int C_FIND_REQUEST
public static final int C_FIND_RESPONSE
public static final int C_MOVE_REQUEST
public static final int C_MOVE_RESPONSE
public static final int C_ECHO_REQUEST
public static final int C_ECHO_RESPONSE
public static final int C_CANCEL_REQUEST
public static final int MEDIUM_PRIORITY
public static final int HIGH_PRIORITY
public static final int LOW_PRIORITY
public int getCommandType()
throws DicomException
DicomExceptionpublic void setCommandType(int commandType)
throws DicomException
DicomExceptionpublic int getMessageID()
throws DicomException
DicomExceptionpublic void setMessageID(int messageID)
throws DicomException
DicomExceptionpublic int getResponseMessageID()
throws DicomException
DicomExceptionpublic void setResponseMessageID(int messageID)
throws DicomException
DicomExceptionpublic int getStatus()
throws DicomException
DicomExceptionpublic void setStatus(int status)
throws DicomException
DicomExceptionpublic int getAffectedSOPClass()
throws DicomException
DicomExceptionpublic void setAffectedSOPClass(int affectedSOPClassUID)
throws DicomException
DicomExceptionpublic int getRequestedSOPClass()
throws DicomException
DicomExceptionpublic void setRequestedSOPClass(int requestedSOPClassUID)
throws DicomException
DicomExceptionpublic java.lang.String getAffectedSOPInstance()
throws DicomException
DicomExceptionpublic void setRequestedSOPInstance(java.lang.String sopInstanceUID)
throws DicomException
DicomExceptionpublic java.lang.String getRequestedSOPInstance()
throws DicomException
DicomExceptionpublic void setAffectedSOPInstance(java.lang.String sopInstanceUID)
throws DicomException
DicomExceptionpublic void hasData(boolean b)
throws DicomException
DicomExceptionpublic boolean hasData()
throws DicomException
DicomExceptionpublic int getPriority()
throws DicomException
DicomExceptionpublic void setPriority(int priority)
throws DicomException
DicomExceptionpublic java.lang.String getMoveOriginatorAE()
throws DicomException
DicomExceptionpublic void setMoveOriginatorAE(java.lang.String moveAE)
throws DicomException
DicomExceptionpublic int getRemainingSuboperations()
throws DicomException
DicomExceptionpublic void setRemainingSuboperations(int remainingSubops)
throws DicomException
DicomExceptionpublic int getCompletedSuboperations()
throws DicomException
DicomExceptionpublic void setCompletedSuboperations(int completedSubops)
throws DicomException
DicomExceptionpublic int getFailedSuboperations()
throws DicomException
DicomExceptionpublic void setFailedSuboperations(int failedSubops)
throws DicomException
DicomExceptionpublic int getWarningSuboperations()
throws DicomException
DicomExceptionpublic void setWarningSuboperations(int warningSubops)
throws DicomException
DicomExceptionpublic int getMoveOriginatorID()
throws DicomException
DicomExceptionpublic void setMoveOriginatorMessageID(int moveOriginatorMessageID)
throws DicomException
DicomExceptionpublic void setMoveDestination(java.lang.String moveDestinationAE)
throws DicomException
DicomExceptionpublic int getEventTypeID()
throws DicomException
DicomExceptionpublic void setEventTypeID(int eventTypeID)
throws DicomException
DicomExceptionpublic int getActionTypeID()
throws DicomException
DicomExceptionpublic void setActionTypeID(int actionTypeID)
throws DicomException
DicomExceptionpublic java.lang.String getCommandName()
throws DicomException
DicomExceptionpublic static Command createCEchoReq(int messageID, int affectedSOPClassUID) throws DicomException
DicomExceptionpublic static Command createCEchoRes(Command cechoreqcmd, int status) throws DicomException
DicomExceptionpublic static Command createCStoreReq(int messageID, int affectedSOPClassUID, int priority, java.lang.String affectedSOPInstanceUID) throws DicomException
DicomExceptionpublic static Command createCStoreRes(Command cStoreReq, int status) throws DicomException
DicomExceptionpublic static Command createCFindReq(int messageID, int affectedSOPClassUID, int priority) throws DicomException
DicomExceptionpublic static Command createCFindRes(Command cFindReq, int status, boolean identifier) throws DicomException
DicomExceptionpublic static Command createCCancel(Command cReq) throws DicomException
DicomExceptionpublic static Command createCGetReq(int messageID, int affectedSOPClassUID, int priority) throws DicomException
DicomExceptionpublic static Command createCGetRes(Command cGetReq, int status, boolean identifier) throws DicomException
DicomExceptionpublic static Command createCMoveReq(int messageID, int affectedSOPClassUID, int priority, java.lang.String moveDestinationAE) throws DicomException
DicomExceptionpublic static Command createCMoveRes(Command cMoveReq, int status, boolean identifier) throws DicomException
DicomExceptionpublic static Command createNEventReportReq(int messageID, int affectedSOPClassUID, java.lang.String affectedSOPInstanceUID, int eventTypeID, boolean identifier) throws DicomException
DicomExceptionpublic static Command createNEventReportRes(Command nEventReportReq, int status, boolean identifier) throws DicomException
DicomExceptionpublic static Command createNGetReq(int messageID, int requestedSOPClassUID, java.lang.String requestedSOPInstanceUID) throws DicomException
DicomExceptionpublic static Command createNGetRes(Command nGetReq, int status, boolean identifier) throws DicomException
DicomExceptionpublic static Command createNSetReq(int messageID, int requestedSOPClassUID, java.lang.String requestedSOPInstanceUID) throws DicomException
DicomExceptionpublic static Command createNSetRes(Command nSetReq, int status, boolean identifier) throws DicomException
DicomExceptionpublic static Command createNActionReq(int messageID, int requestedSOPClassUID, java.lang.String requestedSOPInstanceUID, int actionTypeID, boolean identifier) throws DicomException
DicomExceptionpublic static Command createNActionRes(Command nActionReq, int status, boolean identifier) throws DicomException
DicomExceptionpublic static Command createNCreateReq(int messageID, int affectedSOPClassUID, java.lang.String affectedSOPInstanceUID, boolean identifier) throws DicomException
DicomExceptionpublic static Command createNCreateRes(Command nCreateReq, int status, boolean identifier) throws DicomException
DicomExceptionpublic static Command createNDeleteReq(int messageID, int requestedSOPClassUID, java.lang.String requestedSOPInstanceUID) throws DicomException
DicomExceptionpublic static Command createNDeleteRes(Command nDeleteReq, int status) throws DicomException
DicomException