public class RulesCollection
extends java.lang.Object
Note that this class is not an implementation of the Collection
interface.
Modifier and Type | Field and Description |
---|---|
static Rules |
APPLICATION_DEFAULT_RULES |
static java.lang.String |
ID
Class identification name with source code version and date.
|
Constructor and Description |
---|
RulesCollection() |
RulesCollection(PIRL.Configuration.Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Rules> |
getAllRules() |
Rules |
getRules(double lat) |
Rules |
getRules(StereoPair pair) |
Rules |
getRules(Target targetSite) |
Rules |
getUserDefaultRules() |
boolean |
isAllowedAzimuthDifference(MroStereoPair pair) |
boolean |
isAllowedIncidenceDifference(MroStereoPair pair) |
boolean |
isAllowedShadowTipDifference(MroStereoPair pair) |
boolean |
isAllowedSolarSeparationAngle(MroStereoPair pair) |
boolean |
isGoodConvergence(MroStereoPair pair) |
boolean |
isOkayConvergence(MroStereoPair pair) |
boolean |
isRollSignCompatible(MroStereoPair pair,
boolean isSporc)
Tests the roll signs of the stereo pair against the desired roll sign rule
for the pair's latitude.
|
boolean |
isUrgent(MroStereoPair pair) |
boolean |
isWithGaps() |
RulesCollection |
makeSingleRulesCollection(java.lang.String identifier) |
void |
printRulesReport(java.io.PrintStream out)
Prints a formatted report of this collection's rules to an indicated
print stream.
|
public static final java.lang.String ID
public static final Rules APPLICATION_DEFAULT_RULES
public RulesCollection(PIRL.Configuration.Configuration configuration) throws Rules.RulesException
Rules.RulesException
public RulesCollection()
public java.util.List<Rules> getAllRules()
public Rules getUserDefaultRules()
public boolean isWithGaps()
public Rules getRules(double lat)
public Rules getRules(StereoPair pair)
public boolean isAllowedShadowTipDifference(MroStereoPair pair)
public boolean isAllowedAzimuthDifference(MroStereoPair pair)
public boolean isAllowedSolarSeparationAngle(MroStereoPair pair)
public boolean isAllowedIncidenceDifference(MroStereoPair pair)
public boolean isOkayConvergence(MroStereoPair pair)
public boolean isGoodConvergence(MroStereoPair pair)
public boolean isRollSignCompatible(MroStereoPair pair, boolean isSporc)
ANY
.
For SPORCs, the OPPOSITE
and SAME
rules are treated as ANY
. Indicate that a pair is part of a SPORC set with the isSporc
flag.
pair
- a stereo pair to be tested.isSporc
- indicates whether the pair is a SPORC pair, which may modify
the roll sign rule for the pair.public boolean isUrgent(MroStereoPair pair)
public void printRulesReport(java.io.PrintStream out)
out
- the output print stream; if null, System.out
is
used.public RulesCollection makeSingleRulesCollection(java.lang.String identifier) throws Rules.RulesException
Rules.RulesException
Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona