public class FileRanking extends PropertyContainer implements RankingMonitor
SchedulerRank| Modifier and Type | Class and Description |
|---|---|
static class |
FileRanking.Inspect |
| Modifier and Type | Field and Description |
|---|---|
private TargetProviding<? extends TargetDefinition> |
all |
private static String |
DEFMERITEXT
The key matching to the target merit save file extension.
|
private static String |
DEFMERITHEAD
The key matching to the target merit save file header.
|
private static String |
DEFOBSERVEEXT
The key matching to the target constraint fail file extension.
|
private static String |
DEFOBSERVEHEAD
The key matching to the target constraint fail file header.
|
private static boolean |
DEFSKIPENGINEERING
Per default, also record engineering targets.
|
static String |
KEY_MERITDIR
The key matching to the target merit save dir.
|
static String |
KEY_MERITEXT
The key matching to the target merit save file extension.
|
static String |
KEY_MERITHEAD
The key matching to the target merit save file header.
|
static String |
KEY_OBSERVEDIR
The key matching to the target constraint fail dir.
|
static String |
KEY_OBSERVEEXT
The key matching to the target constraint fail file extension.
|
static String |
KEY_OBSERVEHEAD
The key matching to the target constraint fail file header.
|
static String |
KEY_SKIPENGINEERING
If true, engineering targets are skipped.
|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
FileRanking(Map<String,String> props) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
recordCurrent(long ms,
String unique)
If either the merit file and/or the observe file is given, we save the
last merits or the last prohibiting constraint in a unique-enhanced save
file.
|
void |
registerProvider(TargetProviding<? extends TargetDefinition> t)
Registers the target provider.
|
static Map<Long,Map<String,Serializable>> |
restore(File from) |
private boolean |
save(Map<String,? extends Serializable> map,
long ms,
File to)
Save the time as a long and serializes the provided mapping into the
file.
|
private boolean |
saveConstraint(long ms,
File to)
Tries to save the denied-by-constraint for the given time.
|
private boolean |
saveMerit(long ms,
File to)
Tries to save the merit-mapping for the given time
|
augment, augment, augment, augment, augment, clone, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, initProperties, isNew, parseObject, parseObject, reload, reload, removeProperty, requires, rescanned, setObject, setProperties, setProperty, stringProperties, toStringpublic static final String KEY_MERITDIR
public static final String KEY_MERITHEAD
public static final String KEY_MERITEXT
public static final String KEY_OBSERVEDIR
public static final String KEY_OBSERVEHEAD
public static final String KEY_OBSERVEEXT
public static final String KEY_SKIPENGINEERING
private static final String DEFMERITHEAD
private static final String DEFMERITEXT
private static final String DEFOBSERVEHEAD
private static final String DEFOBSERVEEXT
private static final boolean DEFSKIPENGINEERING
private TargetProviding<? extends TargetDefinition> all
public void registerProvider(TargetProviding<? extends TargetDefinition> t)
registerProvider in interface TargetProviderDependingTargetProviderDepending.registerProvider(stella.TargetProviding)public boolean recordCurrent(long ms,
String unique)
recordCurrent in interface RankingMonitorms - The time the scheduler was invoked.unique - The unique-ID of the current pickRankingMonitor.recordCurrent(long, java.lang.String)private boolean saveMerit(long ms,
File to)
private boolean saveConstraint(long ms,
File to)
private boolean save(Map<String,? extends Serializable> map, long ms, File to)