scheduler
Class TestOptions

java.lang.Object
  extended byscheduler.TestOptions

public final class TestOptions
extends java.lang.Object

A class containing information on what mechanisms should be turned off while tests. It also contains test counters.

Author:
Piotrek

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

stationsInRangeCounter

private static long stationsInRangeCounter
A number of queries for stations in range.


connectionsForStationsCounter

private static long connectionsForStationsCounter
A number of queries for connections for stations.


meansOfTransporationChoosingEngine

private static int meansOfTransporationChoosingEngine
Means of transportation choosing rules engine to be used.


changesDroppingEngine

private static int changesDroppingEngine
Changes dropping rules engine to be used.


MEANS_OF_TRANSPORTATION_CHOOSING_RULES_ENGINE_JAVA

public static final int MEANS_OF_TRANSPORTATION_CHOOSING_RULES_ENGINE_JAVA
Means of transportation choosing rules engine using JAVA hard coded rules.

See Also:
Constant Field Values

MEANS_OF_TRANSPORTATION_CHOOSING_RULES_ENGINE_JESS

public static final int MEANS_OF_TRANSPORTATION_CHOOSING_RULES_ENGINE_JESS
Means of transportation choosing rules engine using JESS.

See Also:
Constant Field Values

CHANGES_DROPPING_RULES_ENGINE_JAVA

public static final int CHANGES_DROPPING_RULES_ENGINE_JAVA
Changes dropping rules engine using JAVA hard coded rules.

See Also:
Constant Field Values

CHANGES_DROPPING_RULES_ENGINE_JESS

public static final int CHANGES_DROPPING_RULES_ENGINE_JESS
Changes dropping rules engine using JESS.

See Also:
Constant Field Values

fUseRulesChoosingMeansOfTransportation

private static boolean fUseRulesChoosingMeansOfTransportation
Indicates whether to use rules to choose the appropriate means of transportation.


fUseRulesDroppingChanges

private static boolean fUseRulesDroppingChanges
Indicates whether to use rules dropping some of the possible changes.


fLimitAlternativeChangesConnections

private static boolean fLimitAlternativeChangesConnections
Indicates whether to limit the number of starting connections or alternative changes.


fIgnoreContinentIslandInformation

private static boolean fIgnoreContinentIslandInformation
Indicates whether to ignore the continent and island names information while planning.

Constructor Detail

TestOptions

private TestOptions()
Constructor.

Method Detail

Reset

public static void Reset()
Resets all counters and other options to default values (full functionality).


ResetCounters

public static void ResetCounters()
Resets all counters.


GetMeansOfTransportationChoosingEngine

public static int GetMeansOfTransportationChoosingEngine()
Gets an engine to be used to choose means of transportation.

Returns:
An engine to be used to choose means of transportation.
See Also:
MEANS_OF_TRANSPORTATION_CHOOSING_RULES_ENGINE_JAVA, MEANS_OF_TRANSPORTATION_CHOOSING_RULES_ENGINE_JESS

SetMeansOfTransportationChoosingEngine

public static void SetMeansOfTransportationChoosingEngine(int engine)
Sets the engine to be used to choose means of transportation.

Parameters:
engine - An engine to be used.
See Also:
MEANS_OF_TRANSPORTATION_CHOOSING_RULES_ENGINE_JAVA, MEANS_OF_TRANSPORTATION_CHOOSING_RULES_ENGINE_JESS

GetChangesDroppingEngine

public static int GetChangesDroppingEngine()
Gets an engine to be used to drop changes.

Returns:
An engine to be used to drop changes.
See Also:
MEANS_OF_TRANSPORTATION_CHOOSING_RULES_ENGINE_JAVA, MEANS_OF_TRANSPORTATION_CHOOSING_RULES_ENGINE_JESS

SetChangesDroppingEngine

public static void SetChangesDroppingEngine(int engine)
Sets the engine to be used to drop changes.

Parameters:
engine - An engine to be used.
See Also:
CHANGES_DROPPING_RULES_ENGINE_JAVA, CHANGES_DROPPING_RULES_ENGINE_JESS

GetStationsInRangeQueriesCount

public static long GetStationsInRangeQueriesCount()
Gets a number of queries for stations in range.

Returns:
A number of queries for stations in range.

GetConnectionsForStationsQueriesCount

public static long GetConnectionsForStationsQueriesCount()
Gets a number of queries for connections for stations.

Returns:
A number of queries for connections for stations.

IncreaseStationsInRangeQueriesCount

public static void IncreaseStationsInRangeQueriesCount()
Increases a number of queries for stations in range by one.


IncreaseConnectionsForStationsQueriesCount

public static void IncreaseConnectionsForStationsQueriesCount()
Increases a number of queries for connections for stations by one.


ShouldUseRulesChoosingMeansOfTransportation

public static boolean ShouldUseRulesChoosingMeansOfTransportation()
Indicates whether to use rules to choose the appropriate means of transportation.

Returns:
A boolean value indicating whether to use rules to choose the appropriate means of transportation.

SetUseRulesChoosingMeansOfTransportation

public static void SetUseRulesChoosingMeansOfTransportation(boolean fNewValue)
Sets a value indicating whether to use rules to choose the appropriate means of transportation.

Parameters:
fNewValue - A new value of this parameter.

ShouldUseRulesDroppingChanges

public static boolean ShouldUseRulesDroppingChanges()
Indicates whether to use rules dropping some of the possible changes.

Returns:
A boolean value indicating whether to use rules dropping some of the possible changes.

SetUseRulesDroppingChanges

public static void SetUseRulesDroppingChanges(boolean fNewValue)
Sets a value indicating whether to use rules dropping some of the possible changes.

Parameters:
fNewValue - A new value of this parameter.

ShouldLimitAlternativeChangesConnections

public static boolean ShouldLimitAlternativeChangesConnections()
Indicates whether to limit the number of starting connections or alternative changes.

Returns:
A boolean value indicating whether to limit the number of starting connections or alternative changes.

SetLimitAlternativeChangesConnections

public static void SetLimitAlternativeChangesConnections(boolean fNewValue)
Sets a value indicating whether to limit the number of starting connections or alternative changes.

Parameters:
fNewValue - A new value of this parameter.

ShouldIgnoreContinentIslandInformation

public static boolean ShouldIgnoreContinentIslandInformation()
Indicates whether to ignore the continent and island names information while planning.

Returns:
A boolean value indicating whether to ignore the continent and island names information while planning.

SetIgnoreContinentIslandInformation

public static void SetIgnoreContinentIslandInformation(boolean fNewValue)
Sets a value indicating whether to ignore the continent and island names information while planning.

Parameters:
fNewValue - A new value of this parameter.