choco.cp.solver.constraints.global.scheduling.trees
Class AbstractVilimStatus<E>

java.lang.Object
  extended by choco.cp.solver.constraints.global.scheduling.trees.AbstractVilimStatus<E>
Type Parameters:
E -
All Implemented Interfaces:
IDotty, INodeLabel
Direct Known Subclasses:
AltDisjTreeTLTO.AltDisjStatusTLTO, DisjTreeTL.DisjStatusTL

public abstract class AbstractVilimStatus<E>
extends Object
implements INodeLabel

Since:
10 févr. 2009 version 2.0.3
Version:
2.0.3
Author:
Arnaud Malapert

Field Summary
protected  E status
           
protected  ITask task
           
protected  choco.cp.solver.constraints.global.scheduling.trees.AbstractVilimTree.NodeType type
           
 
Constructor Summary
AbstractVilimStatus(choco.cp.solver.constraints.global.scheduling.trees.AbstractVilimTree.NodeType type, E status)
           
 
Method Summary
protected  String format(int value)
           
protected  String format(long value)
           
 int getNbParameters()
           
 Object getParameter(int idx)
           
protected  int getResetIntValue(IVilimTree.TreeMode mode)
           
protected  long getResetLongValue(IVilimTree.TreeMode mode)
           
 E getStatus()
           
 ITask getTask()
           
 choco.cp.solver.constraints.global.scheduling.trees.AbstractVilimTree.NodeType getType()
           
abstract  void reset()
           
 void setParameter(int idx, Object parameter)
           
 void setTask(ITask task)
           
 void setType(choco.cp.solver.constraints.global.scheduling.trees.AbstractVilimTree.NodeType type)
           
 String toDotty()
           
protected abstract  void writeDotStatus(StringBuilder buffer)
           
protected  void writeRow(StringBuilder buffer, String label1, String str1, String label2, String str2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface choco.kernel.common.opres.graph.INodeLabel
updateInternalNode
 

Field Detail

type

protected choco.cp.solver.constraints.global.scheduling.trees.AbstractVilimTree.NodeType type

task

protected ITask task

status

protected final E status
Constructor Detail

AbstractVilimStatus

public AbstractVilimStatus(choco.cp.solver.constraints.global.scheduling.trees.AbstractVilimTree.NodeType type,
                           E status)
Method Detail

getType

public final choco.cp.solver.constraints.global.scheduling.trees.AbstractVilimTree.NodeType getType()

setType

public final void setType(choco.cp.solver.constraints.global.scheduling.trees.AbstractVilimTree.NodeType type)

getTask

public final ITask getTask()

setTask

public void setTask(ITask task)

getStatus

public final E getStatus()

getResetIntValue

protected int getResetIntValue(IVilimTree.TreeMode mode)

getResetLongValue

protected long getResetLongValue(IVilimTree.TreeMode mode)

writeRow

protected void writeRow(StringBuilder buffer,
                        String label1,
                        String str1,
                        String label2,
                        String str2)

format

protected String format(int value)

format

protected String format(long value)

toDotty

public String toDotty()
Specified by:
toDotty in interface IDotty

writeDotStatus

protected abstract void writeDotStatus(StringBuilder buffer)

reset

public abstract void reset()

getNbParameters

public int getNbParameters()
Specified by:
getNbParameters in interface INodeLabel

getParameter

public Object getParameter(int idx)
Specified by:
getParameter in interface INodeLabel

setParameter

public void setParameter(int idx,
                         Object parameter)
Specified by:
setParameter in interface INodeLabel


Copyright © 2012. All Rights Reserved.