Class RelativeTime
- java.lang.Object
-
- org.dcm4che.typeddicom.AbstractAttributesWrapper
-
- org.dcm4che.typeddicom.AbstractDataElementWrapper
-
- org.dcm4che.typeddicom.dataelements.RelativeTime
-
- All Implemented Interfaces:
org.dcm4che.typeddicom.AttributesWrapper,org.dcm4che.typeddicom.DataElementWrapper,org.dcm4che.typeddicom.valuerepresentations.BytesDataElementWrapper,org.dcm4che.typeddicom.valuerepresentations.IntDataElementMultiWrapper,UnsignedShortMultiWrapper
public class RelativeTime extends org.dcm4che.typeddicom.AbstractDataElementWrapper implements UnsignedShortMultiWrapper
Name: Relative Time
Keyword: RelativeTime
Tag: (0072,0038)
Value Representation: UnsignedShort
Value Multiplicity: 2
- Described in the contexts:
- Hanging Protocol Definition Module > Image Sets Sequence > Time Based Image Sets Sequence > Relative Time
Attribute Name: Relative Time
Type: 1C
Attribute Description:Exactly two numeric values, indicating the start and end values of a prior range of Instance acquisition times relative to the date and time of a current image set. The units shall be specified in Relative Time Units (0072,003A).
The value pair 0\0 shall indicate a current image set. The value pair n shall indicate "prior from the Instance acquisition time of a current image set by n units".
Required if the value of Image Set Selector Category (0072,0034) is RELATIVE_TIME.
Note-
A value pair "1\7" with Relative Time Units (0072,003A) of DAYS would indicate the range "prior by 1 to 7 days before a current image set".
-
The VR of this Attribute is unsigned, hence future time cannot be represented.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRelativeTime.Builder<SELF extends RelativeTime.Builder<SELF,T>,T extends RelativeTime.Holder>static interfaceRelativeTime.HolderA class implementing this interface can hold attributes which contain the DICOM tag "Relative Time" (seeRelativeTime)-
Nested classes/interfaces inherited from interface org.dcm4che.typeddicom.valuerepresentations.UnsignedShortMultiWrapper
UnsignedShortMultiWrapper.Setter<B extends org.dcm4che.typeddicom.Builder<B,? extends org.dcm4che.typeddicom.AttributesWrapper>,D extends UnsignedShortMultiWrapper>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPRIVATE_CREATORThe Private Creator associated with this class.static intTAGThe DICOM Tag associated with this class.-
Fields inherited from interface org.dcm4che.typeddicom.valuerepresentations.UnsignedShortMultiWrapper
VALUE_REPRESENTATION
-
-
Constructor Summary
Constructors Constructor Description RelativeTime()Creates a new Relative Time object which wraps a new and emptyAttributesobject.RelativeTime(org.dcm4che3.data.Attributes attributes)Creates a new Relative Time object which wraps the providedattributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RelativeTimecopy()Returns a new Relative Time which wraps a copy of the Attributes wrapped in this Relative Time.java.lang.StringgetPrivateCreator()intgetTag()-
Methods inherited from class org.dcm4che.typeddicom.AbstractDataElementWrapper
equals, exists, getValue, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.dcm4che.typeddicom.AttributesWrapper
copy, getAttributes, getKnownAttributeTags, getUnknownAttributeTags, isEmpty
-
Methods inherited from interface org.dcm4che.typeddicom.valuerepresentations.BytesDataElementWrapper
getBytes, getSafeBytes, setBytes
-
Methods inherited from interface org.dcm4che.typeddicom.valuerepresentations.IntDataElementMultiWrapper
getInt, getInts, setInts
-
Methods inherited from interface org.dcm4che.typeddicom.valuerepresentations.UnsignedShortMultiWrapper
getValueRepresentation
-
-
-
-
Field Detail
-
PRIVATE_CREATOR
public static final java.lang.String PRIVATE_CREATOR
The Private Creator associated with this class.
-
TAG
public static final int TAG
The DICOM Tag associated with this class.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RelativeTime
public RelativeTime(org.dcm4che3.data.Attributes attributes)
Creates a new Relative Time object which wraps the providedattributes.- Parameters:
attributes- theAttributesobject to be wrapped.
-
RelativeTime
public RelativeTime()
Creates a new Relative Time object which wraps a new and emptyAttributesobject.
-
-
Method Detail
-
copy
public RelativeTime copy()
Returns a new Relative Time which wraps a copy of the Attributes wrapped in this Relative Time. (seeAttributes(Attributes)- Returns:
- a new Relative Time which wraps a copy of the Attributes wrapped in this Relative Time.
-
getPrivateCreator
public java.lang.String getPrivateCreator()
- Specified by:
getPrivateCreatorin interfaceorg.dcm4che.typeddicom.DataElementWrapper
-
getTag
public int getTag()
- Specified by:
getTagin interfaceorg.dcm4che.typeddicom.DataElementWrapper
-
-