Package org.mpi_sws.jmc.strategies
Class SchedulingStrategyFactory
java.lang.Object
org.mpi_sws.jmc.strategies.SchedulingStrategyFactory
Factory class for creating scheduling strategies.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SchedulingStrategycreateSchedulingStrategy(String name, SchedulingStrategyConfiguration config) Creates a new scheduling strategy.static booleanisValidStrategy(String name) Checks if a strategy is valid.
-
Constructor Details
-
SchedulingStrategyFactory
public SchedulingStrategyFactory()
-
-
Method Details
-
createSchedulingStrategy
public static SchedulingStrategy createSchedulingStrategy(String name, SchedulingStrategyConfiguration config) throws JmcInvalidStrategyException Creates a new scheduling strategy.- Parameters:
name- the name of the strategyconfig- the configuration for the strategy- Returns:
- the scheduling strategy
- Throws:
JmcInvalidStrategyException
-
isValidStrategy
Checks if a strategy is valid.- Parameters:
name- the name of the strategy- Returns:
- true if the strategy is valid, false otherwise
-