|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.goldenhammer.modality.Modality
This class simulates a modality(i.e CR,CT,MRI,etc.)
Field Summary | |
static java.lang.String |
AE_TITLE
|
static float |
FINISHED
|
static java.lang.String |
IMAGE_SIZE
|
static java.lang.String |
MODALITY
|
static java.lang.String |
MODALITY_ID
|
static java.lang.String |
MODEL
|
static java.lang.String |
SEND_DURATION
|
static java.lang.String |
SEND_TIME
|
static float |
STOPPED
|
static java.lang.String |
TYPE
|
static java.lang.String |
VENDOR
|
static float |
WAITING
|
Constructor Summary | |
Modality()
Constructor |
|
Modality(java.lang.String xmlProfilePath)
Constructs a new modality with the data from the XML profile. |
|
Modality(java.lang.String xmlProfilePath,
java.util.logging.Logger logger)
Constructs a new modality with the data from the XML profile. |
Method Summary | |
void |
addStudy(Study study)
Add the given study to the studies |
void |
doEcho()
This method echos the server |
void |
doStoreImage(java.io.File file,
DICOMHeaderData header)
Stores the image located at the path specified by the File
parameter |
void |
doStoreImage(java.lang.String path,
DICOMHeaderData header)
Stores the image located at the path specified by the String
parameter |
void |
finish()
Notifies the modality that the simulation is finished |
java.lang.String |
getApplicationEntityTitle()
|
java.lang.String |
getLoggerName()
Gets the logger name for this modality |
java.lang.String |
getManufacturer()
|
java.lang.String |
getModalityID()
|
int |
getModalityNumber()
|
ModalityStats |
getModalityStats()
Returns the ModalityStats object for this modality. |
java.lang.String |
getModel()
|
java.lang.String |
getProfilePath()
Returns the path to the XML file used to create this Modality. |
java.lang.String |
getSenderName()
Returns the sender name assigned to this instance. |
float |
getStatus()
Gets the status of this modality with regard to its completion of the simulation |
java.util.Collection |
getStudies()
|
java.lang.String |
getType()
|
void |
save(java.lang.String filename)
Saves this modality to an XML file. |
void |
setApplicationEntityTitle(java.lang.String applicationEntityTitle)
|
void |
setLoggerName(java.lang.String name)
Sets the logger name for this modality |
void |
setManufacturer(java.lang.String manufacturer)
|
void |
setModalityID(java.lang.String modalityID)
|
void |
setModalityNumber(int modalityNumber)
Sets the modality number, which is used to identify the images that this modality sends. |
void |
setModel(java.lang.String model)
|
void |
setProfilePath(java.lang.String profile)
|
void |
setSenderName(java.lang.String senderName)
Sets the sender name for this modality instance. |
void |
setStatus(float newStatus)
Sets the status of the modality with regard to its completion of the simulation |
void |
setStudies(java.util.Collection studies)
Adds studies to this modality. |
void |
setType(java.lang.String type)
|
void |
stop()
Notifies the modality that it should stop what it is doing |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String VENDOR
public static final java.lang.String MODALITY
public static final java.lang.String MODEL
public static final java.lang.String MODALITY_ID
public static final java.lang.String TYPE
public static final java.lang.String AE_TITLE
public static final float STOPPED
public static final float FINISHED
public static final float WAITING
public static final java.lang.String IMAGE_SIZE
public static final java.lang.String SEND_TIME
public static final java.lang.String SEND_DURATION
Constructor Detail |
public Modality(java.lang.String xmlProfilePath, java.util.logging.Logger logger) throws ModalityException, java.io.IOException
xmlProfilePath
- The path to the XML profile.logger
- A logger to use for this modality.
ModalityException
- thrown if there is a problem parsing the xml document.
java.io.IOException
- thrown if the XML profile could not be found.public Modality(java.lang.String xmlProfilePath) throws ModalityException, java.io.IOException
xmlProfilePath
- The path to the XML profile.
ModalityException
- thrown if there is a problem parsing the xml document.
java.io.IOException
- thrown if the XML profile could not be found.public Modality()
Method Detail |
public void doEcho()
public void doStoreImage(java.io.File file, DICOMHeaderData header)
File
parameter
file
- File
object that indicates the path where the
image being sent is locatedheader
- the object containing the header data for the image being
stored. If this is null
, then the header data
from file
will be used.public void doStoreImage(java.lang.String path, DICOMHeaderData header)
String
parameter
path
- string that indicates the path where the image being sent is
locatedheader
- the object containing the header data for the image being
stored. If this is null
, then the header data
from file
will be used.public java.lang.String getApplicationEntityTitle()
public void setApplicationEntityTitle(java.lang.String applicationEntityTitle)
applicationEntityTitle
- The applicationEntityTitle to set.public java.lang.String getLoggerName()
public void setLoggerName(java.lang.String name)
name
- The name of the logger for this modalitypublic java.lang.String getManufacturer()
public void setManufacturer(java.lang.String manufacturer)
manufacturer
- The manufacturer to set.public java.lang.String getModalityID()
public void setModalityID(java.lang.String modalityID)
modalityID
- The modalityID to set.public int getModalityNumber()
public void setModalityNumber(int modalityNumber)
modalityNumber
- the modalityNumber to setpublic java.lang.String getModel()
public void setModel(java.lang.String model)
model
- The model to set.public java.lang.String getType()
public void setType(java.lang.String type)
type
- The type to set.public java.util.Collection getStudies()
public void setStudies(java.util.Collection studies)
studies
- The studies to add to this modality.public void save(java.lang.String filename) throws java.io.IOException
filename
- The desired name of the XML file.
java.io.IOException
- If the file could not be written.public void stop()
public void finish()
public void setSenderName(java.lang.String senderName)
senderName
- The name the test profile assigns to this instance.public java.lang.String getSenderName()
public java.lang.String getProfilePath()
public void setProfilePath(java.lang.String profile)
profile
- The path to the modality's profile.public void addStudy(Study study)
study
- the study to addpublic float getStatus()
public void setStatus(float newStatus)
newStatus
- The new status of this modalitypublic ModalityStats getModalityStats()
ModalityStats
object for this modality.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |