public class SchedulerFileRank extends SchedulerRank
readRankingFiles(java.io.File, java.io.File) this class has valid data. // round to the nearest
jd, add 1 to be compliant with old double jd = Astro.JD(tobs); double rjd =
.5+Math.floor(jd); // format that as a date-string String dir =
DIRFORMAT.format(Astro.JD(rjd));| Modifier and Type | Field and Description |
|---|---|
private Map<String,String> |
failed |
private Map<String,Double> |
meritranking |
| Constructor and Description |
|---|
SchedulerFileRank(String unique)
As the ranking files are located in sub-dirs below some high-level, this
object becomes ready only after its files has been read.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getFailed()
Returns the mapping of target names to failed constraints.
|
Map<String,Double> |
getMeritRanking()
Returns the mapping of target names to their pick merit for this unique.
|
void |
readRankingFiles(File merit,
File constraint)
We read the two files eachas serialized mappings, preceded by the exact
ranking time.
|
getFailedTargetsFor, getFailureReason, getHighestRank, getHighestTarget, getHighestTargets, getRank, getRankingTime, getTargetsAbove, getUnique, hashCode, setRankingTimepublic SchedulerFileRank(String unique)
unique - public Map<String,String> getFailed()
SchedulerRankgetFailed in class SchedulerRankpublic Map<String,Double> getMeritRanking()
SchedulerRankgetMeritRanking in class SchedulerRankpublic void readRankingFiles(File merit, File constraint) throws IOException
merit - A long, than a mapping of strings to doubles.constraint - A long, than a mapping of strings to stringsIOException