public class PointingBlock extends PointingElement implements PointingBlockInterface
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BLOCK_TAG |
static java.lang.String |
ENDTIME_TAG |
static java.lang.String |
STARTTIME_TAG |
static java.lang.String |
TYPE_GSEP
Pointing block type for on-board implemented autonomous guidance attitude
|
static java.lang.String |
TYPE_MNAV
Pointing block type performing navigation slots that nominally use the NAVCAM that do not contain a WOL.
|
static java.lang.String |
TYPE_MOCM
PointingBlock type for performing a dV manoeuvre
|
static java.lang.String |
TYPE_MSLW
a slew reserved by FD (e.g at a VSTP border)
|
static java.lang.String |
TYPE_MWAC |
static java.lang.String |
TYPE_MWNV
Pointing block type performing navigation slots that normally use the NAVCAM also contain a WOL
|
static java.lang.String |
TYPE_MWOL
Pointing block type performing a wheel of loading
|
static java.lang.String |
TYPE_OBS
Pointing block type performing science observations.
|
static java.lang.String |
TYPE_SLEW
Slew between 2 blocks
|
Constructor and Description |
---|
PointingBlock(PointingElement org) |
PointingBlock(java.lang.String blockType,
java.util.Date startDate,
java.util.Date endDate)
Creates a pointing block of the given type.
|
Modifier and Type | Method and Description |
---|---|
void |
addMetadata(PointingMetadata newMetadata)
The child element
|
CompositeDataset |
asDataset() |
PointingBlock |
copy() |
static java.lang.String |
dateToZulu(java.util.Date date)
Deprecated.
use
#vega.uplink.DateUtil.dateToZulu(java.util.Date date) instead. |
PointingAttitude |
getAttitude()
Get the attitude of this block
|
long |
getDuration() |
java.util.Date |
getEndTime() |
java.lang.String |
getInstrument() |
PointingElement[] |
getMetadata()
Get all the metadata that this block have or null if it has no metadata
|
PointingElement |
getMetadata(java.lang.String name)
Get a specific metadata of the given name (vstpNumber,positionError,hgaRequest,comment or planning)
|
PointingMetadata |
getMetadataElement() |
java.util.Date |
getStartTime() |
java.lang.String |
getType() |
int |
getVstpNumberMeta() |
boolean |
isMaintenance() |
boolean |
isSlew() |
static PointingBlock |
readFrom(org.w3c.dom.Node node)
Read a block from a XML node
|
void |
setAttitude(PointingAttitude newAttitude)
Set the attitude of this block
|
void |
setEndTime(java.util.Date time)
Set end date of the time interval during which the pointing block is valid
|
void |
setMetadata(PointingMetadata meta) |
void |
setStartTime(java.util.Date time)
Set start date of the time interval during which the pointing block is valid
|
static PointingBlock |
toPointingBlock(PointingBlockInterface pb) |
boolean |
validate() |
static java.util.Date |
zuluToDate(java.lang.String zuluTime)
Deprecated.
use
#vega.uplink.DateUtil.zuluToDate(String zuluTime) instead. |
addAttribute, addChild, copyFrom, equals, getAttribute, getAttributes, getChild, getChildren, getDescription, getFirstLevelTextContent, getName, getValue, hasAttributtes, hasChildren, regenerate, removeAttribute, removeAttribute, setDescription, setValue, toString, toStringParameter, toXml
public static java.lang.String STARTTIME_TAG
public static java.lang.String ENDTIME_TAG
public static java.lang.String TYPE_MWAC
public static java.lang.String TYPE_MOCM
public static java.lang.String TYPE_MWOL
public static java.lang.String TYPE_MWNV
public static java.lang.String TYPE_MSLW
public static java.lang.String TYPE_MNAV
public static java.lang.String TYPE_SLEW
public static java.lang.String TYPE_OBS
public static java.lang.String TYPE_GSEP
public static java.lang.String BLOCK_TAG
public PointingBlock(PointingElement org)
public PointingBlock(java.lang.String blockType, java.util.Date startDate, java.util.Date endDate)
blockType
- Pointing block typestartDate
- start date of the time interval during which the pointing block is validendDate
- start date of the time interval during which the pointing block is validpublic PointingBlock copy()
copy
in class PointingElement
public static PointingBlock toPointingBlock(PointingBlockInterface pb)
public CompositeDataset asDataset()
asDataset
in class PointingElement
public java.lang.String getType()
getType
in interface PointingBlockInterface
public java.util.Date getStartTime()
getStartTime
in interface PointingBlockInterface
public java.util.Date getEndTime()
getEndTime
in interface PointingBlockInterface
public void setStartTime(java.util.Date time)
setStartTime
in interface PointingBlockInterface
time
- public void setEndTime(java.util.Date time)
setEndTime
in interface PointingBlockInterface
time
- public long getDuration()
getDuration
in interface PointingBlockInterface
public void setAttitude(PointingAttitude newAttitude)
setAttitude
in interface PointingBlockInterface
newAttitude
- public PointingAttitude getAttitude()
getAttitude
in interface PointingBlockInterface
public PointingElement getMetadata(java.lang.String name)
getMetadata
in interface PointingBlockInterface
name
- public PointingMetadata getMetadataElement()
getMetadataElement
in interface PointingBlockInterface
public PointingElement[] getMetadata()
getMetadata
in interface PointingBlockInterface
public void addMetadata(PointingMetadata newMetadata)
addMetadata
in interface PointingBlockInterface
newMetadata
- public void setMetadata(PointingMetadata meta)
setMetadata
in interface PointingBlockInterface
@Deprecated public static java.lang.String dateToZulu(java.util.Date date)
#vega.uplink.DateUtil.dateToZulu(java.util.Date date)
instead.date
- date to be transformed@Deprecated public static java.util.Date zuluToDate(java.lang.String zuluTime) throws java.text.ParseException
#vega.uplink.DateUtil.zuluToDate(String zuluTime)
instead.zuluTime
- the string to be readjava.text.ParseException
- if string is malformedpublic static PointingBlock readFrom(org.w3c.dom.Node node)
node
- node to be readpublic boolean isSlew()
isSlew
in interface PointingBlockInterface
public boolean isMaintenance()
isMaintenance
in interface PointingBlockInterface
public boolean validate()
validate
in interface PointingBlockInterface
validate
in class PointingElement
public java.lang.String getInstrument()
getInstrument
in interface PointingBlockInterface
public int getVstpNumberMeta()
getVstpNumberMeta
in interface PointingBlockInterface