Package ai.libs.hasco.gui.statsplugin
Class HASCOModelStatisticsPluginModel
- java.lang.Object
-
- ai.libs.jaicore.graphvisualizer.plugin.ASimpleMVCPluginModel<HASCOModelStatisticsPluginView,HASCOModelStatisticsPluginController>
-
- ai.libs.hasco.gui.statsplugin.HASCOModelStatisticsPluginModel
-
- All Implemented Interfaces:
ai.libs.jaicore.graphvisualizer.plugin.IGUIPluginModel
public class HASCOModelStatisticsPluginModel extends ai.libs.jaicore.graphvisualizer.plugin.ASimpleMVCPluginModel<HASCOModelStatisticsPluginView,HASCOModelStatisticsPluginController>
-
-
Constructor Summary
Constructors Constructor Description HASCOModelStatisticsPluginModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEntry(ai.libs.jaicore.graphvisualizer.plugin.solutionperformanceplotter.ScoredSolutionCandidateInfo scoredSolutionCandidateInfo)Informs the plugin about a new HASCOSolution.voidclear()Clears the model (and subsequently the view)ComponentInstancedeserializeComponentInstance(java.lang.String serializedComponentInstance)java.util.Collection<ai.libs.jaicore.graphvisualizer.plugin.solutionperformanceplotter.ScoredSolutionCandidateInfo>getAllSeenSolutionCandidateFoundInfosUnordered()Gets an (unordered) collection of the solutions received so far.java.util.Map<java.lang.String,Component>getKnownComponents()org.apache.commons.math3.stat.descriptive.DescriptiveStatisticsgetPerformanceStatisticsForComposition(UnparametrizedComponentInstance composition)doubleparseScoreToDouble(java.lang.String score)
-
-
-
Method Detail
-
addEntry
public final void addEntry(ai.libs.jaicore.graphvisualizer.plugin.solutionperformanceplotter.ScoredSolutionCandidateInfo scoredSolutionCandidateInfo)
Informs the plugin about a new HASCOSolution. This solution will be considered in the combo boxes as well as in the histogram.- Parameters:
solutionEvent-
-
getAllSeenSolutionCandidateFoundInfosUnordered
public java.util.Collection<ai.libs.jaicore.graphvisualizer.plugin.solutionperformanceplotter.ScoredSolutionCandidateInfo> getAllSeenSolutionCandidateFoundInfosUnordered()
Gets an (unordered) collection of the solutions received so far.- Returns:
- Collection of solutions.
-
getKnownComponents
public java.util.Map<java.lang.String,Component> getKnownComponents()
- Returns:
- A map that assigns, for each known component, its name to the Component object.
-
getPerformanceStatisticsForComposition
public org.apache.commons.math3.stat.descriptive.DescriptiveStatistics getPerformanceStatisticsForComposition(UnparametrizedComponentInstance composition)
- Parameters:
composition-- Returns:
-
clear
public void clear()
Clears the model (and subsequently the view)- Specified by:
clearin classai.libs.jaicore.graphvisualizer.plugin.ASimpleMVCPluginModel<HASCOModelStatisticsPluginView,HASCOModelStatisticsPluginController>
-
deserializeComponentInstance
public ComponentInstance deserializeComponentInstance(java.lang.String serializedComponentInstance)
-
parseScoreToDouble
public double parseScoreToDouble(java.lang.String score) throws java.lang.NumberFormatException- Throws:
java.lang.NumberFormatException
-
-