|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjecttimeTable.transportNetwork.Vertex
public class Vertex
Exemple d'implémentation de FlowableVertex, représente un sommet dans le réseau de transport. Le coût de cet implémentation est le passage de l'instance de TransportNetwork en paramètre dans le constructeur.
Constructor Summary | |
---|---|
Vertex(TransportNetwork myTransportNetwork,
int indexOfVertex)
Création d'un sommet... |
Method Summary | |
---|---|
void |
acceptMark(FlowMark myMark)
Accepte la marque myMark. |
void |
addInArc(Arc myArc)
Ajout d'une arête inconforme. |
void |
addOutArc(Arc myArc)
Ajout d'une arête conforme. |
void |
addToTheCut()
Ajoute ce sommet dans la coupe. |
java.util.Vector |
getInArcs()
Retourne la liste des prédécesseurs. |
int |
getIndex()
Retourne l' index du sommet courant. |
FlowMark |
getMark()
Retourne la marque si elle existe. |
java.util.Vector |
getOutArcs()
Retourne la liste des successeurs. |
FlowableVertex |
getSink()
Retourne le sommet puits. |
FlowableVertex |
getSource()
Retourne le sommet source. |
boolean |
isInTheCut()
Retourne true si ce sommet est dans la coupe. |
java.lang.String |
toString()
Renvoie cette arête sous format chaîne de caractères |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Vertex(TransportNetwork myTransportNetwork, int indexOfVertex)
Method Detail |
---|
public int getIndex()
index
du sommet courant.
public void addOutArc(Arc myArc)
public void addInArc(Arc myArc)
public FlowableVertex getSource()
getSource
in interface FlowableVertex
public FlowableVertex getSink()
getSink
in interface FlowableVertex
public java.util.Vector getInArcs()
getInArcs
in interface FlowableVertex
public java.util.Vector getOutArcs()
getOutArcs
in interface FlowableVertex
public void acceptMark(FlowMark myMark)
acceptMark
in interface FlowableVertex
public FlowMark getMark()
getMark
in interface FlowableVertex
public void addToTheCut()
addToTheCut
in interface FlowableVertex
public boolean isInTheCut()
true
si ce sommet est dans la coupe.
isInTheCut
in interface FlowableVertex
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |