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, write
addGroups, clear, containsGroup, copyGroup, enumerateVRs, enumerateVRs, isEmpty, numberOfElements, numberOfGroups, removeGroup
public 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
DicomException
public void setCommandType(int commandType) throws DicomException
DicomException
public int getMessageID() throws DicomException
DicomException
public void setMessageID(int messageID) throws DicomException
DicomException
public int getResponseMessageID() throws DicomException
DicomException
public void setResponseMessageID(int messageID) throws DicomException
DicomException
public int getStatus() throws DicomException
DicomException
public void setStatus(int status) throws DicomException
DicomException
public int getAffectedSOPClass() throws DicomException
DicomException
public void setAffectedSOPClass(int affectedSOPClassUID) throws DicomException
DicomException
public int getRequestedSOPClass() throws DicomException
DicomException
public void setRequestedSOPClass(int requestedSOPClassUID) throws DicomException
DicomException
public java.lang.String getAffectedSOPInstance() throws DicomException
DicomException
public void setRequestedSOPInstance(java.lang.String sopInstanceUID) throws DicomException
DicomException
public java.lang.String getRequestedSOPInstance() throws DicomException
DicomException
public void setAffectedSOPInstance(java.lang.String sopInstanceUID) throws DicomException
DicomException
public void hasData(boolean b) throws DicomException
DicomException
public boolean hasData() throws DicomException
DicomException
public int getPriority() throws DicomException
DicomException
public void setPriority(int priority) throws DicomException
DicomException
public java.lang.String getMoveOriginatorAE() throws DicomException
DicomException
public void setMoveOriginatorAE(java.lang.String moveAE) throws DicomException
DicomException
public int getRemainingSuboperations() throws DicomException
DicomException
public void setRemainingSuboperations(int remainingSubops) throws DicomException
DicomException
public int getCompletedSuboperations() throws DicomException
DicomException
public void setCompletedSuboperations(int completedSubops) throws DicomException
DicomException
public int getFailedSuboperations() throws DicomException
DicomException
public void setFailedSuboperations(int failedSubops) throws DicomException
DicomException
public int getWarningSuboperations() throws DicomException
DicomException
public void setWarningSuboperations(int warningSubops) throws DicomException
DicomException
public int getMoveOriginatorID() throws DicomException
DicomException
public void setMoveOriginatorMessageID(int moveOriginatorMessageID) throws DicomException
DicomException
public void setMoveDestination(java.lang.String moveDestinationAE) throws DicomException
DicomException
public int getEventTypeID() throws DicomException
DicomException
public void setEventTypeID(int eventTypeID) throws DicomException
DicomException
public int getActionTypeID() throws DicomException
DicomException
public void setActionTypeID(int actionTypeID) throws DicomException
DicomException
public java.lang.String getCommandName() throws DicomException
DicomException
public static Command createCEchoReq(int messageID, int affectedSOPClassUID) throws DicomException
DicomException
public static Command createCEchoRes(Command cechoreqcmd, int status) throws DicomException
DicomException
public static Command createCStoreReq(int messageID, int affectedSOPClassUID, int priority, java.lang.String affectedSOPInstanceUID) throws DicomException
DicomException
public static Command createCStoreRes(Command cStoreReq, int status) throws DicomException
DicomException
public static Command createCFindReq(int messageID, int affectedSOPClassUID, int priority) throws DicomException
DicomException
public static Command createCFindRes(Command cFindReq, int status, boolean identifier) throws DicomException
DicomException
public static Command createCCancel(Command cReq) throws DicomException
DicomException
public static Command createCGetReq(int messageID, int affectedSOPClassUID, int priority) throws DicomException
DicomException
public static Command createCGetRes(Command cGetReq, int status, boolean identifier) throws DicomException
DicomException
public static Command createCMoveReq(int messageID, int affectedSOPClassUID, int priority, java.lang.String moveDestinationAE) throws DicomException
DicomException
public static Command createCMoveRes(Command cMoveReq, int status, boolean identifier) throws DicomException
DicomException
public static Command createNEventReportReq(int messageID, int affectedSOPClassUID, java.lang.String affectedSOPInstanceUID, int eventTypeID, boolean identifier) throws DicomException
DicomException
public static Command createNEventReportRes(Command nEventReportReq, int status, boolean identifier) throws DicomException
DicomException
public static Command createNGetReq(int messageID, int requestedSOPClassUID, java.lang.String requestedSOPInstanceUID) throws DicomException
DicomException
public static Command createNGetRes(Command nGetReq, int status, boolean identifier) throws DicomException
DicomException
public static Command createNSetReq(int messageID, int requestedSOPClassUID, java.lang.String requestedSOPInstanceUID) throws DicomException
DicomException
public static Command createNSetRes(Command nSetReq, int status, boolean identifier) throws DicomException
DicomException
public static Command createNActionReq(int messageID, int requestedSOPClassUID, java.lang.String requestedSOPInstanceUID, int actionTypeID, boolean identifier) throws DicomException
DicomException
public static Command createNActionRes(Command nActionReq, int status, boolean identifier) throws DicomException
DicomException
public static Command createNCreateReq(int messageID, int affectedSOPClassUID, java.lang.String affectedSOPInstanceUID, boolean identifier) throws DicomException
DicomException
public static Command createNCreateRes(Command nCreateReq, int status, boolean identifier) throws DicomException
DicomException
public static Command createNDeleteReq(int messageID, int requestedSOPClassUID, java.lang.String requestedSOPInstanceUID) throws DicomException
DicomException
public static Command createNDeleteRes(Command nDeleteReq, int status) throws DicomException
DicomException