|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectscheduler.TestOptions
A class containing information on what mechanisms should be turned off while tests. It also contains test counters.
Field Summary | |
static int |
CHANGES_DROPPING_RULES_ENGINE_JAVA
Changes dropping rules engine using JAVA hard coded rules. |
static int |
CHANGES_DROPPING_RULES_ENGINE_JESS
Changes dropping rules engine using JESS. |
private static int |
changesDroppingEngine
Changes dropping rules engine to be used. |
private static long |
connectionsForStationsCounter
A number of queries for connections for stations. |
private static boolean |
fIgnoreContinentIslandInformation
Indicates whether to ignore the continent and island names information while planning. |
private static boolean |
fLimitAlternativeChangesConnections
Indicates whether to limit the number of starting connections or alternative changes. |
private static boolean |
fUseRulesChoosingMeansOfTransportation
Indicates whether to use rules to choose the appropriate means of transportation. |
private static boolean |
fUseRulesDroppingChanges
Indicates whether to use rules dropping some of the possible changes. |
static int |
MEANS_OF_TRANSPORTATION_CHOOSING_RULES_ENGINE_JAVA
Means of transportation choosing rules engine using JAVA hard coded rules. |
static int |
MEANS_OF_TRANSPORTATION_CHOOSING_RULES_ENGINE_JESS
Means of transportation choosing rules engine using JESS. |
private static int |
meansOfTransporationChoosingEngine
Means of transportation choosing rules engine to be used. |
private static long |
stationsInRangeCounter
A number of queries for stations in range. |
Constructor Summary | |
private |
TestOptions()
Constructor. |
Method Summary | |
static int |
GetChangesDroppingEngine()
Gets an engine to be used to drop changes. |
static long |
GetConnectionsForStationsQueriesCount()
Gets a number of queries for connections for stations. |
static int |
GetMeansOfTransportationChoosingEngine()
Gets an engine to be used to choose means of transportation. |
static long |
GetStationsInRangeQueriesCount()
Gets a number of queries for stations in range. |
static void |
IncreaseConnectionsForStationsQueriesCount()
Increases a number of queries for connections for stations by one. |
static void |
IncreaseStationsInRangeQueriesCount()
Increases a number of queries for stations in range by one. |
static void |
Reset()
Resets all counters and other options to default values (full functionality). |
static void |
ResetCounters()
Resets all counters. |
static void |
SetChangesDroppingEngine(int engine)
Sets the engine to be used to drop changes. |
static void |
SetIgnoreContinentIslandInformation(boolean fNewValue)
Sets a value indicating whether to ignore the continent and island names information while planning. |
static void |
SetLimitAlternativeChangesConnections(boolean fNewValue)
Sets a value indicating whether to limit the number of starting connections or alternative changes. |
static void |
SetMeansOfTransportationChoosingEngine(int engine)
Sets the engine to be used to choose means of transportation. |
static void |
SetUseRulesChoosingMeansOfTransportation(boolean fNewValue)
Sets a value indicating whether to use rules to choose the appropriate means of transportation. |
static void |
SetUseRulesDroppingChanges(boolean fNewValue)
Sets a value indicating whether to use rules dropping some of the possible changes. |
static boolean |
ShouldIgnoreContinentIslandInformation()
Indicates whether to ignore the continent and island names information while planning. |
static boolean |
ShouldLimitAlternativeChangesConnections()
Indicates whether to limit the number of starting connections or alternative changes. |
static boolean |
ShouldUseRulesChoosingMeansOfTransportation()
Indicates whether to use rules to choose the appropriate means of transportation. |
static boolean |
ShouldUseRulesDroppingChanges()
Indicates whether to use rules dropping some of the possible changes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static long stationsInRangeCounter
private static long connectionsForStationsCounter
private static int meansOfTransporationChoosingEngine
private static int changesDroppingEngine
public static final int MEANS_OF_TRANSPORTATION_CHOOSING_RULES_ENGINE_JAVA
public static final int MEANS_OF_TRANSPORTATION_CHOOSING_RULES_ENGINE_JESS
public static final int CHANGES_DROPPING_RULES_ENGINE_JAVA
public static final int CHANGES_DROPPING_RULES_ENGINE_JESS
private static boolean fUseRulesChoosingMeansOfTransportation
private static boolean fUseRulesDroppingChanges
private static boolean fLimitAlternativeChangesConnections
private static boolean fIgnoreContinentIslandInformation
Constructor Detail |
private TestOptions()
Method Detail |
public static void Reset()
public static void ResetCounters()
public static int GetMeansOfTransportationChoosingEngine()
MEANS_OF_TRANSPORTATION_CHOOSING_RULES_ENGINE_JAVA
,
MEANS_OF_TRANSPORTATION_CHOOSING_RULES_ENGINE_JESS
public static void SetMeansOfTransportationChoosingEngine(int engine)
engine
- An engine to be used.MEANS_OF_TRANSPORTATION_CHOOSING_RULES_ENGINE_JAVA
,
MEANS_OF_TRANSPORTATION_CHOOSING_RULES_ENGINE_JESS
public static int GetChangesDroppingEngine()
MEANS_OF_TRANSPORTATION_CHOOSING_RULES_ENGINE_JAVA
,
MEANS_OF_TRANSPORTATION_CHOOSING_RULES_ENGINE_JESS
public static void SetChangesDroppingEngine(int engine)
engine
- An engine to be used.CHANGES_DROPPING_RULES_ENGINE_JAVA
,
CHANGES_DROPPING_RULES_ENGINE_JESS
public static long GetStationsInRangeQueriesCount()
public static long GetConnectionsForStationsQueriesCount()
public static void IncreaseStationsInRangeQueriesCount()
public static void IncreaseConnectionsForStationsQueriesCount()
public static boolean ShouldUseRulesChoosingMeansOfTransportation()
public static void SetUseRulesChoosingMeansOfTransportation(boolean fNewValue)
fNewValue
- A new value of this parameter.public static boolean ShouldUseRulesDroppingChanges()
public static void SetUseRulesDroppingChanges(boolean fNewValue)
fNewValue
- A new value of this parameter.public static boolean ShouldLimitAlternativeChangesConnections()
public static void SetLimitAlternativeChangesConnections(boolean fNewValue)
fNewValue
- A new value of this parameter.public static boolean ShouldIgnoreContinentIslandInformation()
public static void SetIgnoreContinentIslandInformation(boolean fNewValue)
fNewValue
- A new value of this parameter.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |