public class Ptr
extends MapContext
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | BODY_TAG | 
| static java.lang.String | HEADER_TAG | 
| static java.lang.String | PRM_TAG | 
| Constructor and Description | 
|---|
| Ptr()Creates a new, empty PTR/PTSL | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addSegment(PtrSegment newSegment)Add a new segment to this PTR/PTSL | 
| herschel.ia.pal.MapContext | asContext() | 
| PointingBlock[] | getAllBlocks()Get all pointing blocks contained in all segments of this PTR/PTSL | 
| PointingBlocksSlice | getAllBlocksOfInstrument(java.lang.String instrument) | 
| PointingBlock | getBlockAt(java.util.Date time)Get a block at a given time | 
| PointingBlock | getBlockAt(java.lang.String time)Get a block at a given time | 
| java.lang.String | getName() | 
| java.lang.String | getPath() | 
| java.lang.String[] | getPtrSegmentNames()Get the names of the segments contained in this PTR/PTSL | 
| PtrSegment | getSegment(java.lang.String segmentName)Get the segment with the given name | 
| PtrSegment[] | getSegments()Get all segments contained in this PTR/PTSL | 
| PointingBlocksSlice | getSlice(int number) | 
| void | regenerate(Ptr ptr) | 
| void | setName(java.lang.String name) | 
| void | setPath(java.lang.String path) | 
| void | setSegments(PtrSegment[] newSegments)Add all segments contained in the array given | 
| void | setSlice(PointingBlocksSlice slice) | 
| java.lang.String | toXml()get a xml representation of this PTR or PTSL | 
public static java.lang.String PRM_TAG
public static java.lang.String HEADER_TAG
public static java.lang.String BODY_TAG
public void setName(java.lang.String name)
public void setPath(java.lang.String path)
public java.lang.String getName()
public java.lang.String getPath()
public herschel.ia.pal.MapContext asContext()
public void regenerate(Ptr ptr)
public PtrSegment[] getSegments()
public void setSegments(PtrSegment[] newSegments)
newSegments - public void addSegment(PtrSegment newSegment)
newSegment - public PtrSegment getSegment(java.lang.String segmentName)
segmentName - public java.lang.String[] getPtrSegmentNames()
public PointingBlock[] getAllBlocks()
public PointingBlock getBlockAt(java.util.Date time)
time - the time to searchpublic PointingBlock getBlockAt(java.lang.String time) throws java.text.ParseException
time - the time to searchjava.text.ParseException - if the string can not converted to a datepublic java.lang.String toXml()
public PointingBlocksSlice getSlice(int number)
public PointingBlocksSlice getAllBlocksOfInstrument(java.lang.String instrument)
public void setSlice(PointingBlocksSlice slice)