public class ObjectiveRecorder extends Object
| Constructor and Description |
|---|
ObjectiveRecorder() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clearFirstTimeEncountered() |
static double |
computeCoverage(String prefix) |
static BootTimeObjectiveInfo |
exposeBootTimeObjectiveInfo() |
static String |
getDescriptiveId(int id) |
static Map<Integer,String> |
getDescriptiveIds(Collection<Integer> ids) |
static int |
getMappedId(String descriptiveId) |
static List<String> |
getTargetsSeenFirstTime() |
static void |
printCoveragePerTarget(PrintWriter writer) |
static void |
registerExternalServiceInfoAtSutStartupTime(ExternalServiceInfo info)
register external service info at Sut Startup Time
|
static void |
registerHostnameResolutionInfoAtSutStartupTime(HostnameResolutionInfo info)
register hostname resolution info at Sut Startup Time
|
static void |
registerTarget(String target)
Mark the existence of a testing target.
|
static void |
reset(boolean alsoAtLoadTime)
Reset all the static state in this class
|
static void |
update(String descriptiveId,
double value,
boolean bootTime) |
public static void reset(boolean alsoAtLoadTime)
public static void registerHostnameResolutionInfoAtSutStartupTime(HostnameResolutionInfo info)
info - to appendpublic static void registerExternalServiceInfoAtSutStartupTime(ExternalServiceInfo info)
info - to appendpublic static BootTimeObjectiveInfo exposeBootTimeObjectiveInfo()
public static void registerTarget(String target)
target - a descriptive string representing the id of the targetpublic static double computeCoverage(String prefix)
public static void printCoveragePerTarget(PrintWriter writer)
public static void clearFirstTimeEncountered()
public static void update(String descriptiveId, double value, boolean bootTime)
descriptiveId - of the objective/targetvalue - of the coverage heuristic, in [0,1]public static int getMappedId(String descriptiveId)
public static Map<Integer,String> getDescriptiveIds(Collection<Integer> ids)
public static String getDescriptiveId(int id)
Copyright © 2016–2024. All rights reserved.