org.das2.stream
Class PacketDescriptor
java.lang.Object
org.das2.stream.PacketDescriptor
- All Implemented Interfaces:
- java.lang.Cloneable
public class PacketDescriptor
- extends java.lang.Object
- implements java.lang.Cloneable
Represents the global properties of the stream, that are accessible to
datasets within.
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PacketDescriptor
public PacketDescriptor(org.w3c.dom.Element element)
- Creates a new instance of StreamProperties
PacketDescriptor
public PacketDescriptor()
getXDescriptor
public StreamXDescriptor getXDescriptor()
setXDescriptor
public void setXDescriptor(StreamXDescriptor x)
addYDescriptor
public void addYDescriptor(SkeletonDescriptor y)
getYCount
public int getYCount()
getYDescriptors
public java.util.List getYDescriptors()
- Returns a List of SkeletonDescriptor instances that represent the y
planes in a packet. The List is unmodifiable and will throw an acception
if any attempt is made to alter the list. The contents of the list will
not be updated if a yDescriptor is added to this packet descriptor.
- Returns:
- a List of y planes
getYDescriptor
public SkeletonDescriptor getYDescriptor(int index)
getSizeBytes
public int getSizeBytes()
read
public DatumVector[] read(java.nio.ByteBuffer input)
write
public void write(Datum xTag,
DatumVector[] vectors,
java.nio.ByteBuffer output)
createLegacyPacketDescriptor
public static PacketDescriptor createLegacyPacketDescriptor(java.util.Map dsdf)
getDOMElement
public org.w3c.dom.Element getDOMElement(org.w3c.dom.Document document)
getProperty
public java.lang.Object getProperty(java.lang.String name)
getProperties
public java.util.Map getProperties()
setProperty
public void setProperty(java.lang.String name,
java.lang.Object value)
clone
public java.lang.Object clone()
- Overrides:
clone
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object