taxisrus.implementation.scheduler_stuff
Class Edge

java.lang.Object
  |
  +--taxisrus.implementation.scheduler_stuff.Edge

public class Edge
extends Object

Edge has two vertices. Used to represent the lines drawn on screen

Author:
SegFaults

Constructor Summary
Edge(Vector2D v1, Vector2D v2)
          Constructors
 
Method Summary
 boolean equals(Object obj)
          Overrides the Object class's equal function Two edges are equal if they have the same vertices.
 Vector2D GetVertex1()
          Acessor - get Vertex1 of this edge
 Vector2D GetVertex2()
          Acessor - get Vertex2 of this edge
 void SetVertex1(Vector2D v1)
          Mutator - set Vertex1 of this edge
 void SetVertex2(Vector2D v2)
          Mutator - set Vertex2 of this edge
 boolean ShareVertex(Edge edge)
          Determines if two edges have a common vertex.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Edge

public Edge(Vector2D v1,
            Vector2D v2)
Constructors
Method Detail

GetVertex1

public Vector2D GetVertex1()
Acessor - get Vertex1 of this edge

GetVertex2

public Vector2D GetVertex2()
Acessor - get Vertex2 of this edge

equals

public boolean equals(Object obj)
Overrides the Object class's equal function Two edges are equal if they have the same vertices. Note: Edge(a,b) = Edge(b,a)
Overrides:
equals in class Object
Parameters:
an - Edge
Returns:
true if edges equal, else false

ShareVertex

public boolean ShareVertex(Edge edge)
Determines if two edges have a common vertex.

SetVertex1

public void SetVertex1(Vector2D v1)
Mutator - set Vertex1 of this edge

SetVertex2

public void SetVertex2(Vector2D v2)
Mutator - set Vertex2 of this edge


API documentation for build 958