Package ai.libs.hasco.gui.statsplugin
Class HASCOModelStatisticsComponentSelector
- java.lang.Object
-
- javafx.scene.control.TreeItem<HASCOModelStatisticsComponentSelector>
-
- ai.libs.hasco.gui.statsplugin.HASCOModelStatisticsComponentSelector
-
- All Implemented Interfaces:
javafx.event.EventTarget
public class HASCOModelStatisticsComponentSelector extends javafx.scene.control.TreeItem<HASCOModelStatisticsComponentSelector>
-
-
Constructor Summary
Constructors Constructor Description HASCOModelStatisticsComponentSelector(HASCOModelStatisticsPluginView rootView, HASCOModelStatisticsComponentSelector parent, java.lang.String requiredInterface, HASCOModelStatisticsPluginModel model)
HASCOModelStatisticsComponentSelector(HASCOModelStatisticsPluginView rootView, HASCOModelStatisticsPluginModel model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Resets the combo box to the wild-card and removes all child nodes.java.util.Collection<java.util.List<ai.libs.jaicore.basic.sets.Pair<java.lang.String,java.lang.String>>>
getAllSelectionsOnPathToAnyLeaf()
Determines the set of all selection paths from here to a any leaf.javafx.scene.control.ComboBox<java.lang.String>
getComponentSelector()
java.lang.String
getRequiredInterface()
java.util.List<ai.libs.jaicore.basic.sets.Pair<java.lang.String,java.lang.String>>
getSelectionsOnPathToRoot()
Gets the choices made in the combo boxes on the path from the root to here.java.lang.String
toString()
void
update()
This recursively updates the whole tree view under this node with respect to the current selections.-
Methods inherited from class javafx.scene.control.TreeItem
addEventHandler, branchCollapsedEvent, branchExpandedEvent, buildEventDispatchChain, childrenModificationEvent, expandedItemCountChangeEvent, expandedProperty, getChildren, getGraphic, getParent, getValue, graphicChangedEvent, graphicProperty, isExpanded, isLeaf, leafProperty, nextSibling, nextSibling, parentProperty, previousSibling, previousSibling, removeEventHandler, setExpanded, setGraphic, setValue, treeNotificationEvent, valueChangedEvent, valueProperty
-
-
-
-
Constructor Detail
-
HASCOModelStatisticsComponentSelector
public HASCOModelStatisticsComponentSelector(HASCOModelStatisticsPluginView rootView, HASCOModelStatisticsPluginModel model)
-
HASCOModelStatisticsComponentSelector
public HASCOModelStatisticsComponentSelector(HASCOModelStatisticsPluginView rootView, HASCOModelStatisticsComponentSelector parent, java.lang.String requiredInterface, HASCOModelStatisticsPluginModel model)
-
-
Method Detail
-
update
public void update()
This recursively updates the whole tree view under this node with respect to the current selections. This method is currently not too efficient, because it always iterates over all solutions, but it is still fast enough.
-
clear
public void clear()
Resets the combo box to the wild-card and removes all child nodes.
-
getSelectionsOnPathToRoot
public java.util.List<ai.libs.jaicore.basic.sets.Pair<java.lang.String,java.lang.String>> getSelectionsOnPathToRoot()
Gets the choices made in the combo boxes on the path from the root to here. The first entry has a null-key just saying what the choice for the root component has been.- Returns:
- List of choices.
-
getAllSelectionsOnPathToAnyLeaf
public java.util.Collection<java.util.List<ai.libs.jaicore.basic.sets.Pair<java.lang.String,java.lang.String>>> getAllSelectionsOnPathToAnyLeaf()
Determines the set of all selection paths from here to a any leaf. For the root node, this is the set of constraints specified in the combo boxes.- Returns:
- Collection of paths to leafs.
-
getRequiredInterface
public java.lang.String getRequiredInterface()
-
getComponentSelector
public javafx.scene.control.ComboBox<java.lang.String> getComponentSelector()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjavafx.scene.control.TreeItem<HASCOModelStatisticsComponentSelector>
-
-