gov.nasa.gsfc.drl.rtstps.core.output.hdf5
Class TimeSpanPacketList

java.lang.Object
  extended by gov.nasa.gsfc.drl.rtstps.core.output.hdf5.TimeSpanPacketList

public class TimeSpanPacketList
extends java.lang.Object

A helper class for the TimeManagedPacketList, this marks the list of designated packets as either open on front or beginning, open at the end, or complete enclosed or encapsulated or open both on the front and end.


Field Summary
private  java.util.List<Packet> spanList
           
private  TimeSpanType tst
           
 
Constructor Summary
TimeSpanPacketList(int firstIndex, int endingIndex, java.util.List<Packet> packetList)
          Create the list and mark it as either being open or enclosed in various ways
 
Method Summary
 java.util.List<Packet> getList()
          The spanned list of packets
 TimeSpanType getTimeSpanType()
          The type of span, whether it open on one or both ends or enclosed
 int size()
          The size of the list of packets being spanned
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

spanList

private java.util.List<Packet> spanList

tst

private TimeSpanType tst
Constructor Detail

TimeSpanPacketList

public TimeSpanPacketList(int firstIndex,
                          int endingIndex,
                          java.util.List<Packet> packetList)
Create the list and mark it as either being open or enclosed in various ways

Parameters:
firstIndex - the first index is either -1 for open, or some index within the list
endingIndex - the last index is either -1 for open, or some index within the list
packetList - the packet list of interest
Method Detail

size

public int size()
The size of the list of packets being spanned

Returns:
the size

getList

public java.util.List<Packet> getList()
The spanned list of packets

Returns:
the list of the packets in the span

getTimeSpanType

public TimeSpanType getTimeSpanType()
The type of span, whether it open on one or both ends or enclosed

Returns:
a TimeSpanType