choco.cp.solver.constraints.global.lightcostregular.structure
Class LayeredGraph

java.lang.Object
  extended by choco.cp.solver.constraints.global.lightcostregular.structure.LayeredGraph

public class LayeredGraph
extends Object

Created by IntelliJ IDEA. User: julien Date: Nov 24, 2008 Time: 1:18:18 PM


Nested Class Summary
 class LayeredGraph.AllActiveEdgeIterator
           
protected  class LayeredGraph.InEdgeIterator
           
protected  class LayeredGraph.OutEdgeIterator
           
 
Constructor Summary
LayeredGraph(IntDomainVar[] vars, IntDomainVar z, IAutomaton pi, double[][][] costs, IEnvironment environment)
           
 
Method Summary
protected  void decQ(int i, int j)
           
 Iterator<Edge> getAllActiveEdgeIterator()
           
 Iterator<Edge> getInEdgeIterator(Node n)
           
 Iterator<Edge> getOutEdgeIterator(Node n)
           
protected  IStateInt getQ(int i, int j)
           
protected  int getQSize(int i, int j)
           
protected  void incQ(int i, int j)
           
protected  void initialFilter()
           
static void main(String[] args)
           
 void makeGraph()
           
 int removeEdge(Edge e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayeredGraph

public LayeredGraph(IntDomainVar[] vars,
                    IntDomainVar z,
                    IAutomaton pi,
                    double[][][] costs,
                    IEnvironment environment)
Method Detail

makeGraph

public void makeGraph()
               throws ContradictionException
Throws:
ContradictionException

initialFilter

protected void initialFilter()
                      throws ContradictionException
Throws:
ContradictionException

removeEdge

public int removeEdge(Edge e)
               throws ContradictionException
Throws:
ContradictionException

getOutEdgeIterator

public Iterator<Edge> getOutEdgeIterator(Node n)

getInEdgeIterator

public Iterator<Edge> getInEdgeIterator(Node n)

getAllActiveEdgeIterator

public Iterator<Edge> getAllActiveEdgeIterator()

getQ

protected IStateInt getQ(int i,
                         int j)

getQSize

protected int getQSize(int i,
                       int j)

decQ

protected void decQ(int i,
                    int j)
             throws ContradictionException
Throws:
ContradictionException

incQ

protected void incQ(int i,
                    int j)

main

public static void main(String[] args)


Copyright © 2012. All Rights Reserved.