|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jmlspecs.samples.digraph.Arc
Directed arcs for directed graphs.
| Field Summary | |
private NodeType |
source
|
private NodeType |
target
|
| Constructor Summary | |
Arc(NodeType source,
NodeType target)
Initialize this arc with the given source and target. |
|
| Method Summary | |
protected String |
className()
Return the name of this class. |
Object |
clone()
|
boolean |
equals(Object o)
|
void |
flip()
Invert the direction of this arc. |
NodeType |
getSource()
Get the source node of this arc. |
NodeType |
getTarget()
Get the target node of this arc. |
int |
hashCode()
|
void |
setSource(NodeType source)
Set the source node of this arc to the given node. |
void |
setTarget(NodeType target)
Set the target node of this arc to the given node. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
private NodeType source
private NodeType target
| Constructor Detail |
public Arc(NodeType source,
NodeType target)
| Method Detail |
public boolean equals(Object o)
equals in class Objectpublic Object clone()
clone in class Objectpublic int hashCode()
hashCode in class Objectpublic void flip()
public NodeType getSource()
public void setSource(NodeType source)
public NodeType getTarget()
public void setTarget(NodeType target)
protected String className()
public String toString()
toString in class Object
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||