public class MeasurementResultAnalyserBlackboardView extends Object implements EvaluableExpressionFitnessFunctionBlackboardView
Blackboard
designed to be used by MeasurementResultAnalyser
. It allows reading access and adding access for
resource demanding internal actions,
SEFF branches, SEFF loops,
external call parameters, reading, writing, and the
fitness function.Constructor and Description |
---|
MeasurementResultAnalyserBlackboardView(Blackboard blackboard)
Set the blackboard instance from the
AnalysisController to the private
blackboard attribute. |
public MeasurementResultAnalyserBlackboardView(Blackboard blackboard)
AnalysisController
to the private
blackboard attribute.blackboard
- The blackboard given from the AnalysisController
.public Set<ResourceDemandingInternalAction> getAllRdias()
Blackboard.getAllSeffBranches()
.null
.public Set<SeffBranch> getAllSeffBranches()
Blackboard.getAllSeffBranches()
.null
.public Set<SeffLoop> getAllSeffLoops()
Blackboard.getAllSeffLoops()
.null
.public Set<ExternalCallParameter> getAllExternalCallParameters()
Blackboard.getAllExternalCallParameters()
.null
.public void addToBeMeasuredRdias(Collection<ResourceDemandingInternalAction> rdias)
Blackboard.addToBeMeasuredRdias(Collection)
.rdias
- Resource demanding internal actions that shall be measured. Must not
be null
and must be known to this blackboard.public void addToBeMeasuredSeffBranches(Collection<SeffBranch> branches)
Blackboard.addToBeMeasuredSeffBranches(Collection)
.branches
- SEFF branches that shall be measured. Must not be null
and
must be known to this blackboard.public void addToBeMeasuredSeffLoops(Collection<SeffLoop> loops)
Blackboard.addToBeMeasuredSeffLoops(Collection)
.loops
- SEFF Loops that shall be measured. Must not be null
and must
be known to this blackboard.public void addToBeMeasuredExternalCallParameters(Collection<ExternalCallParameter> parameters)
Blackboard.addToBeMeasuredExternalCallParameters(Collection)
.parameters
- external call parameters that shall be measured. Must not be
null
and must be known to this blackboard.public Set<ResourceDemandMeasurementResult> getMeasurementResultsFor(ResourceDemandingInternalAction rdia)
getMeasurementResultsFor
in interface EvaluableExpressionFitnessFunctionBlackboardView
rdia
- An resource demanding internal action to get the measurement results
of. Must not be null
.rdia
. Changes to the returned
set will not modify the blackboard content. Is never null
.Blackboard.getMeasurementResultsFor(
ResourceDemandingInternalAction)
public Set<BranchDecisionMeasurementResult> getMeasurementResultsFor(SeffBranch branch)
Blackboard.getMeasurementResultsFor(SeffBranch)
.getMeasurementResultsFor
in interface EvaluableExpressionFitnessFunctionBlackboardView
branch
- A SEFF Branch to get the measurement results of. Must not be
null
.branch
. Changes to the
returned set will not modify the blackboard content. Is never null
.Blackboard.getMeasurementResultsFor(SeffBranch)
public Set<LoopRepetitionCountMeasurementResult> getMeasurementResultsFor(SeffLoop loop)
Blackboard.getMeasurementResultsFor(SeffLoop)
.getMeasurementResultsFor
in interface EvaluableExpressionFitnessFunctionBlackboardView
loop
- A SEFF Loop to get the measurement results of. Must not be null
.loop
. Changes to the returned
set will not modify the blackboard content. Is never null
.Blackboard.getMeasurementResultsFor(SeffLoop)
public Set<ParameterChangeMeasurementResult> getMeasurementResultsFor(ExternalCallParameter externalCallParameter)
Blackboard.getMeasurementResultsFor(ExternalCallParameter)
.getMeasurementResultsFor
in interface EvaluableExpressionFitnessFunctionBlackboardView
externalCallParameter
- An external parameter to get the measurement results
of. Must not be null
.loexternalCallParameterop
.
Changes to the returned set will not modify the blackboard content. Is
never null
.Blackboard.getMeasurementResultsFor(ExternalCallParameter)
public void addProposedExpressionFor(MeasurableSeffElement element, EvaluableExpression expression)
element
- A SEFF element. Must not be null
.expression
- An evaluable expression proposed to describe element
’s
measurement results. Must not be null
.public EvaluableExpressionFitnessFunction getFitnessFunction()
Blackboard.getFitnessFunction()
.Blackboard.getFitnessFunction()
public ProjectInformation getProjectInformation()
public <WRITTEN_TYPE extends Serializable> WRITTEN_TYPE readFor(Class<? extends BlackboardStorer<WRITTEN_TYPE>> writer)
Blackboard.readFor(Class)
.readFor
in interface EvaluableExpressionFitnessFunctionBlackboardView
WRITTEN_TYPE
- The type of the data to be read.writer
- The class the desired data was written for. Must not be null
.writer
. null
if no data has been written for
writer
yet.Blackboard.readFor(Class)
public <WRITTEN_TYPE extends Serializable> void writeFor(Class<? extends BlackboardStorer<WRITTEN_TYPE>> writer, WRITTEN_TYPE written)
Blackboard.writeFor(Class, Serializable)
.writeFor
in interface EvaluableExpressionFitnessFunctionBlackboardView
WRITTEN_TYPE
- written
’s type.writer
- The class the data should be written for. Must not be null
.written
- The data to write.Blackboard.writeFor(Class, Serializable)