Class MacroBlockSelectionPolicy
java.lang.Object
solvers.linearSystem.btf.topLevelBlocks.MacroBlockSelectionPolicy
- Direct Known Subclasses:
TypeOneBlocks, TypeTwoABlocks
A class to encapsulate the various policies for selecting Macro Blocks when constructing
the linear systems for lower classes.
- Author:
- Jack Bradshaw
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TopLevelBlockThe full TopLevelBlock containing ALL macro blocks -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMacroBlockSelectionPolicy(QNModel qnm, TopLevelBlock full_block) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract MacroBlock[]selectMacroBlocks(int current_class) Selects the required macro blocks as per the policy and returns a list of the sub-blocks of those macro blocks
-
Field Details
-
full_block
The full TopLevelBlock containing ALL macro blocks
-
-
Constructor Details
-
MacroBlockSelectionPolicy
Constructor- Parameters:
qnm- The Queueing Network Model under considerationfull_block- The full TopLevelBlock containing ALL macro blocks
-
-
Method Details
-
selectMacroBlocks
Selects the required macro blocks as per the policy and returns a list of the sub-blocks of those macro blocks- Parameters:
current_class- The current class being considered.- Returns:
- Array of selected sub-MacroBlocks
-