public final class MeasurementControllerBlackboardView extends Object
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, and the fitness
function.Constructor and Description |
---|
MeasurementControllerBlackboardView(Blackboard blackboard)
Set the blackboard instance from the
AnalysisController to the private
blackboard attribute. |
public MeasurementControllerBlackboardView(Blackboard blackboard)
AnalysisController
to the private
blackboard attribute.blackboard
- The blackboard given from the AnalysisController
.public Set<ResourceDemandingInternalAction> getRdiasToBeMeasured()
Blackboard.getRdiasToBeMeasured()
.null
.Blackboard.getRdiasToBeMeasured()
public Set<SeffBranch> getSeffBranchesToBeMeasured()
Blackboard.getSeffBranchesToBeMeasured()
.null
.Blackboard.getSeffBranchesToBeMeasured()
public Set<SeffLoop> getSeffLoopsToBeMeasured()
Blackboard.getSeffLoopsToBeMeasured()
.null
.Blackboard.getSeffLoopsToBeMeasured()
public Set<ExternalCallParameter> getExternalCallParametersToBeMeasured()
Blackboard.getExternalCallParametersToBeMeasured()
.null
.Blackboard.getExternalCallParametersToBeMeasured()
public void addMeasurementResultFor(ResourceDemandingInternalAction rdia, ResourceDemandMeasurementResult results)
Blackboard.addMeasurementResultFor(ResourceDemandingInternalAction, ResourceDemandMeasurementResult)
.rdia
- A resource demanding internal action that was measured. Must not be
null
.results
- The result of that measurement. Must not be null
.public void addMeasurementResultFor(SeffLoop loop, LoopRepetitionCountMeasurementResult results)
loop
- A SEFF Loop was measured. Must not be null
.results
- The result of that measurement. Must not be null
.public void addMeasurementResultFor(SeffBranch branch, BranchDecisionMeasurementResult results)
branch
- A SEFF Branch that was measured. Must not be null
.results
- The result of that measurement. Must not be null
.public void addMeasurementResultFor(ExternalCallParameter parameter, ParameterChangeMeasurementResult results)
Blackboard.addMeasurementResultFor(ExternalCallParameter, ParameterChangeMeasurementResult)
.parameter
- An external call parameter which was measured. Must not be
null
.results
- The result of that measurement. 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)
.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)
.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)