choco.kernel.solver.constraints.global.automata.fast_costregular.structure
Class Arc

java.lang.Object
  extended by org.jgrapht.graph.DefaultEdge
      extended by org.jgrapht.graph.DefaultWeightedEdge
          extended by choco.kernel.solver.constraints.global.automata.fast_costregular.structure.Arc
All Implemented Interfaces:
IndexedObject, Serializable, Cloneable

public class Arc
extends org.jgrapht.graph.DefaultWeightedEdge
implements IndexedObject

Created by IntelliJ IDEA. User: julien Date: Oct 30, 2009 Time: 3:48:11 PM

See Also:
Serialized Form

Nested Class Summary
static class Arc.ArcFacroty
           
 
Field Summary
 double cost
           
 Node dest
           
 int id
           
 Node orig
           
 int value
           
 
Constructor Summary
Arc(Node orig, Node dest, int value)
           
Arc(Node orig, Node dest, int value, int id, double cost)
           
 
Method Summary
 int getObjectIdx()
           
 double getWeight()
           
 void setId(int id)
           
 String toString()
           
 
Methods inherited from class org.jgrapht.graph.DefaultEdge
getSource, getTarget
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

public int id

orig

public Node orig

dest

public Node dest

value

public int value

cost

public double cost
Constructor Detail

Arc

public Arc(Node orig,
           Node dest,
           int value,
           int id,
           double cost)

Arc

public Arc(Node orig,
           Node dest,
           int value)
Method Detail

getWeight

public double getWeight()
Overrides:
getWeight in class org.jgrapht.graph.DefaultWeightedEdge

toString

public String toString()
Overrides:
toString in class org.jgrapht.graph.DefaultEdge

setId

public final void setId(int id)

getObjectIdx

public int getObjectIdx()
Specified by:
getObjectIdx in interface IndexedObject


Copyright © 2012. All Rights Reserved.