choco.cp.solver.constraints.global.scheduling.trees
Class AbstractVilimTree
java.lang.Object
choco.kernel.common.opres.graph.ProperBinaryTree
choco.cp.solver.constraints.global.scheduling.trees.AbstractVilimTree
- All Implemented Interfaces:
- IVilimTree, IDotty, ITree
- Direct Known Subclasses:
- AltDisjTreeTLTO, CumTreeT, DisjTreeT, DisjTreeTL
public abstract class AbstractVilimTree
- extends ProperBinaryTree
- implements IVilimTree
- Since:
- 9 févr. 2009 version 2.0.3
- Version:
- 2.0.3
- Author:
- Arnaud Malapert
Methods inherited from class choco.kernel.common.opres.graph.ProperBinaryTree |
fireTreeChanged, fireTreeChanged, getDepth, getNbInternalNodes, getNbLeaves, getRoot, insert, isLeftOrRight, remove, removeLast, setRoot |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractVilimTree
public AbstractVilimTree(List<? extends ITask> tasks)
getTaskComparator
protected Comparator<ITask> getTaskComparator()
getLeaf
protected IBinaryNode getLeaf(ITask task)
insertTask
protected void insertTask(ITask task,
AbstractVilimStatus<?> leafStatus,
AbstractVilimStatus<?> internalStatus)
reset
public void reset()
- Specified by:
reset
in interface IVilimTree
applySort
protected void applySort(IBinaryNode current,
ListIterator<ITask> iter)
sort
public void sort()
- Specified by:
sort
in interface IVilimTree
getMode
public final IVilimTree.TreeMode getMode()
- Specified by:
getMode
in interface IVilimTree
setMode
public void setMode(IVilimTree.TreeMode mode)
- Specified by:
setMode
in interface IVilimTree
contains
public boolean contains(ITask task)
- Specified by:
contains
in interface IVilimTree
remove
public void remove(ITask task)
- Specified by:
remove
in interface IVilimTree
toDotty
public String toDotty()
- Specified by:
toDotty
in interface IDotty
Copyright © 2012. All Rights Reserved.