public class Edge
extends java.lang.Object
Constructor and Description |
---|
Edge(int id,
Isomer isomer,
int n1,
int n2,
EdgeType e1,
EdgeType e2,
playn.core.GroupLayer graphLayer)
Constructor of the Edge
|
public Edge(int id, Isomer isomer, int n1, int n2, EdgeType e1, EdgeType e2, playn.core.GroupLayer graphLayer)
id
- - the unique integer associated with this edge read from the raw dataisomer
- - type of Isomer read from raw datan1
- - the unique integer id of node1 read from raw datan2
- - the unique integer id of node2 read from raw datae1
- - the EdgeType read from raw datae2
- - the EdgeType read from raw datagraphLayer
- - the GroupLayer of the graphpublic void paint()
public int getID()
public int getN1()
public int getN2()
public Road getRoad()
public java.lang.String toString()
toString
in class java.lang.Object