petri_jfern
Class ArcMap

java.lang.Object
  extended by petri_jfern.ArcMap

public class ArcMap
extends java.lang.Object

The Class ArcMap is a helper class to combine the VANTED arcs and the rakiura arcs.

Author:
Kevin Pucknat

Constructor Summary
ArcMap()
           
 
Method Summary
 void addArc(AbstractArc arc, org.rakiura.cpn.AbstractArc a)
          Adds the arc.
 boolean containsKeyR(org.rakiura.cpn.AbstractArc a)
          Contains key r.
 boolean containsKeyV(AbstractArc arc)
          Contains key v.
 java.util.List<org.rakiura.cpn.AbstractArc> getAllarcsR()
          Gets the allarcs r (rakiura).
 java.util.List<AbstractArc> getAllArcsV()
          Gets the all arcs v (vanted).
 org.rakiura.cpn.AbstractArc getarcR(AbstractArc arc)
          Gets the arc r (rakiura).
 AbstractArc getArcV(org.rakiura.cpn.AbstractArc a)
          Gets the arc v (vanted).
 void removeArcR(org.rakiura.cpn.AbstractArc a)
          Removes the arc r (rakiura).
 void removeArcV(AbstractArc arc)
          Removes the arc v (vanted).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArcMap

public ArcMap()
Method Detail

addArc

public void addArc(AbstractArc arc,
                   org.rakiura.cpn.AbstractArc a)
Adds the arc.

Parameters:
arc - the arc (vanted)
a - the arc (rakiura)

removeArcV

public void removeArcV(AbstractArc arc)
Removes the arc v (vanted).

Parameters:
arc - the arc

removeArcR

public void removeArcR(org.rakiura.cpn.AbstractArc a)
Removes the arc r (rakiura).

Parameters:
a - the a

getArcV

public AbstractArc getArcV(org.rakiura.cpn.AbstractArc a)
Gets the arc v (vanted).

Parameters:
a - the a (rakiura)
Returns:
the arc v (vanted)

getarcR

public org.rakiura.cpn.AbstractArc getarcR(AbstractArc arc)
Gets the arc r (rakiura).

Parameters:
arc - the arc (vanted)
Returns:
the arc r (rakiura)

getAllArcsV

public java.util.List<AbstractArc> getAllArcsV()
Gets the all arcs v (vanted).

Returns:
the all arcs v (rakiura)

getAllarcsR

public java.util.List<org.rakiura.cpn.AbstractArc> getAllarcsR()
Gets the allarcs r (rakiura).

Returns:
the allarcs r (rakiura)

containsKeyR

public boolean containsKeyR(org.rakiura.cpn.AbstractArc a)
Contains key r.

Parameters:
a - the a (rakiura)
Returns:
true, if successful

containsKeyV

public boolean containsKeyV(AbstractArc arc)
Contains key v.

Parameters:
arc - the arc (vanted)
Returns:
true, if successful