Class FCCDecoderExtension
- java.lang.Object
-
- edu.kit.ipd.are.dsexplore.featurecompletions.weaver.extensions.FCCDecoderExtension
-
- All Implemented Interfaces:
IDecodeExtension
public class FCCDecoderExtension extends Object implements IDecodeExtension
-
-
Constructor Summary
Constructors Constructor Description FCCDecoderExtension(Pointer<FCCWeaver> weaver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
decode(Pointer<org.palladiosimulator.solver.models.PCMInstance> pcm)
Start the decoding process.List<Choice>
getChoices()
Get new choices which might be produced during decoding.void
grabChoices(List<Choice> notTransformedChoices)
Grab choices which belong to this module (delete them from the list, and save it in the module).void
nextDecodeStart()
Indicates the start of a new decoding.void
postProcessing(List<Choice> notTransformedChoices, org.palladiosimulator.solver.models.PCMInstance pcm)
At the end of the decoding this method will be invoked by PerOpteryx.
-
-
-
Method Detail
-
nextDecodeStart
public void nextDecodeStart()
Description copied from interface:IDecodeExtension
Indicates the start of a new decoding.- Specified by:
nextDecodeStart
in interfaceIDecodeExtension
-
grabChoices
public void grabChoices(List<Choice> notTransformedChoices)
Description copied from interface:IDecodeExtension
Grab choices which belong to this module (delete them from the list, and save it in the module). (Especially iff the choices cannot interpreted by the 'plain' PerOpteryx.)- Specified by:
grabChoices
in interfaceIDecodeExtension
- Parameters:
notTransformedChoices
- the list of not transformed choices
-
decode
public void decode(Pointer<org.palladiosimulator.solver.models.PCMInstance> pcm)
Description copied from interface:IDecodeExtension
Start the decoding process.- Specified by:
decode
in interfaceIDecodeExtension
- Parameters:
pcm
- a pointer to the PCMInstance. You are allowed to create a new one for further work.
-
getChoices
public List<Choice> getChoices()
Description copied from interface:IDecodeExtension
Get new choices which might be produced during decoding.- Specified by:
getChoices
in interfaceIDecodeExtension
- Returns:
- a list of new choices
-
postProcessing
public void postProcessing(List<Choice> notTransformedChoices, org.palladiosimulator.solver.models.PCMInstance pcm)
Description copied from interface:IDecodeExtension
At the end of the decoding this method will be invoked by PerOpteryx.- Specified by:
postProcessing
in interfaceIDecodeExtension
- Parameters:
notTransformedChoices
- the remaining choicespcm
- the finalPCMInstance
-
-