public class ObservationPlan extends ObservationPlanHeader
| Modifier and Type | Field and Description |
|---|---|
static int |
OBSERVE_NIR |
static int |
OBSERVE_RED |
static int |
OBSERVE_RED_NIR |
flatMinutes, fovFrameHeight, hourAngleRange, limbMargin, lowestMoonAltitude, lowestStarAltitude, maximumMoonPhase, maximumStarDistance, minimumMoonPhase, minimumStarDistance, moonObservationPeriod, observationTimeInterval, obsPlanDirectoryName, starObservationPeriod, timeStepMin, twilightInfo, twilightMinutes| Constructor and Description |
|---|
ObservationPlan()
Class constructor
|
ObservationPlan(ObservationPlan plan)
Copy-constructor-like constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBlockToSequence(Block newBlock)
Adds a new block to the end of the sequence.
|
void |
addBlockToStart(Block newBlock)
Adds a new block to the beginning of the sequence.
|
void |
addEveningFlatBlock(BlockFlat block) |
void |
addMoonObservablePositions(java.util.ArrayList<ObjectProperties> moonPositions) |
void |
addMorningFlatBlock(BlockFlat block) |
void |
addTwilightInfo(SunRiseSetTwilight beforeNight,
SunRiseSetTwilight afterNight) |
boolean |
checkBlockTimeConsistency() |
void |
clear() |
void |
generateMoonObservationTimeInterval()
Self-assignment of the time interval of the Observation (contains only star & moon blocks)
|
java.util.ArrayList<Block> |
getBlockList() |
Block |
getCurrentBlock(FullDate date,
FullTime time)
Returns the current observation block, whose start and end is before and after the provided date and time, respectively.
|
ObjectProperties |
getCurrentMoonPosition(FullDate date,
FullTime time)
Gets the current position of the Moon through interpolation.
|
java.util.ArrayList<BlockDark> |
getDarkBlockList() |
java.util.ArrayList<BlockFlat> |
getFlatBlockList() |
TimeInterval |
getFullObservationTimeInterval()
Gets the total time interval that the observation is considered active, including flat and dark blocks.
|
java.util.ArrayList<TimeInterval> |
getGapsInObservation() |
java.util.ArrayList<BlockMoon> |
getMoonBlockList() |
ObjectProperties |
getMoonPositionEnd()
Gets the position coordinates and properties of the Moon at the last observable position
|
ObjectProperties |
getMoonPositionStart()
Gets the position coordinates and properties of the Moon at the first observable position
|
Block |
getNextBlock()
Gets the next block from the sequence.
|
Block |
getNextBlock(FullDate date,
FullTime time,
boolean returnOnlyMoon)
Returns the next observation block, right after the provided date and time.
|
ObjectProperties |
getNextMoonPosition(FullDate date,
FullTime time)
Returns the information of the next position of the Moon in the sequence, right after the provided date and time.
|
int |
getNumberOfBlocks() |
java.util.ArrayList<ObjectProperties> |
getObservableMoonPositions()
Gets the entire list of the moon allPositions.
|
Block |
getPreviousBlock()
Gets the previous block of the current one.
|
java.util.ArrayList<BlockStar> |
getStarBlockList() |
java.lang.String |
getWarningMessage()
Use this function when any of the plan functions returned null.
|
boolean |
hasEveningFlatBlock() |
boolean |
hasMorningFlatBlock() |
boolean |
insertBlock(Block newBlock)
Inserts a new block to the correct position in the sequence of blocks, if there is no overlap with existing blocks.
|
filtersUsed, getMode, getObservationTimeInterval, isCameraEnabled, isGPSEnabled, isMeteoEnabled, isStorageEnabled, isTelescopeEnabled, setCameraEnabled, setFiltersToObserve, setGpsEnabled, setMeteoEnabled, setObservationTimeInterval, setOperationMode, setStorageEnabled, setTelescopeEnabledpublic static final int OBSERVE_RED
public static final int OBSERVE_NIR
public static final int OBSERVE_RED_NIR
public ObservationPlan()
public ObservationPlan(ObservationPlan plan)
plan - public void clear()
public void generateMoonObservationTimeInterval()
public TimeInterval getFullObservationTimeInterval()
public void addMoonObservablePositions(java.util.ArrayList<ObjectProperties> moonPositions)
public java.util.ArrayList<ObjectProperties> getObservableMoonPositions()
public ObjectProperties getMoonPositionStart()
public ObjectProperties getMoonPositionEnd()
public void addBlockToSequence(Block newBlock)
newBlock - public void addBlockToStart(Block newBlock)
newBlock - public boolean insertBlock(Block newBlock)
newBlock - public void addEveningFlatBlock(BlockFlat block)
public void addMorningFlatBlock(BlockFlat block)
public boolean hasEveningFlatBlock()
public boolean hasMorningFlatBlock()
public Block getNextBlock()
public Block getPreviousBlock()
public int getNumberOfBlocks()
public java.util.ArrayList<Block> getBlockList()
public java.util.ArrayList<BlockMoon> getMoonBlockList()
public java.util.ArrayList<BlockStar> getStarBlockList()
public java.util.ArrayList<BlockFlat> getFlatBlockList()
public java.util.ArrayList<BlockDark> getDarkBlockList()
public java.util.ArrayList<TimeInterval> getGapsInObservation()
public boolean checkBlockTimeConsistency()
public void addTwilightInfo(SunRiseSetTwilight beforeNight, SunRiseSetTwilight afterNight)
public ObjectProperties getNextMoonPosition(FullDate date, FullTime time)
date - time - public ObjectProperties getCurrentMoonPosition(FullDate date, FullTime time)
date - time - public Block getNextBlock(FullDate date, FullTime time, boolean returnOnlyMoon)
date - time - returnOnlyMoon - specifies that we are looking for the next BlockMoonpublic Block getCurrentBlock(FullDate date, FullTime time)
date - time - public java.lang.String getWarningMessage()