Package implementation.gui.model
Class ObservablePartition
- java.lang.Object
-
- implementation.algorithms.Partition
-
- implementation.gui.model.ObservablePartition
-
public class ObservablePartition extends Partition
Partition with some observable properties for the interface- Author:
- nk-fouque
-
-
Property Summary
Properties Type Property Description javafx.beans.property.StringProperty
state
-
Constructor Summary
Constructors Constructor Description ObservablePartition(CollectionsModel colMd, java.lang.String uriTarget, int descriptionDepth)
-
Method Summary
Modifier and Type Method Description javafx.beans.property.StringProperty
getNbNeighbors()
boolean
oneStepPartitioning()
Applies one iteration of the Partition algorithmjavafx.beans.property.StringProperty
stateProperty()
-
Methods inherited from class implementation.algorithms.Partition
completePartitioning, cut, getClusters, getGraph, getNeighbors, toString
-
-
-
-
Constructor Detail
-
ObservablePartition
public ObservablePartition(CollectionsModel colMd, java.lang.String uriTarget, int descriptionDepth)
- Parameters:
colMd
- A preexisting CollectionsModel in which to describe the node and search for its neighborsuriTarget
- The full length uri of the node to describe
-
-
Method Detail
-
oneStepPartitioning
public boolean oneStepPartitioning() throws PartitionException, java.lang.OutOfMemoryError
Description copied from class:Partition
Applies one iteration of the Partition algorithm- Overrides:
oneStepPartitioning
in classPartition
- Returns:
- false if the partitioning is over, true if it can still be iterated
- Throws:
PartitionException
java.lang.OutOfMemoryError
-
stateProperty
public javafx.beans.property.StringProperty stateProperty()
-
getNbNeighbors
public javafx.beans.property.StringProperty getNbNeighbors()
-
-