petri_jfern
Class PlaceMap

java.lang.Object
  extended by petri_jfern.PlaceMap

public class PlaceMap
extends java.lang.Object

The Class PlaceMap is a helper class to combine the VANTED places and the rakiura places.

Author:
Kevin Pucknat

Constructor Summary
PlaceMap()
           
 
Method Summary
 void addPlace(Place place, org.rakiura.cpn.Place p)
          Adds the place.
 boolean containsKeyR(org.rakiura.cpn.Place p)
          Contains key r.
 boolean containsKeyV(Place place)
          Contains key v.
 java.util.List<org.rakiura.cpn.Place> getAllPlacesR()
          Gets the all places r (rakiura).
 java.util.List<Place> getAllPlacesV()
          Gets the all places v (vanted).
 org.rakiura.cpn.Place getPlaceR(Place place)
          Gets the place r (rakiura).
 Place getPlaceV(org.rakiura.cpn.Place p)
          Gets the place v.
 void removePlaceR(org.rakiura.cpn.Place p)
          Removes the place r (vanted, rakiura).
 void removePlaceV(Place place)
          Removes the place v (vanted, rakiura).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlaceMap

public PlaceMap()
Method Detail

addPlace

public void addPlace(Place place,
                     org.rakiura.cpn.Place p)
Adds the place.

Parameters:
place - the place (vanted)
p - the p (rakiura)

removePlaceV

public void removePlaceV(Place place)
Removes the place v (vanted, rakiura).

Parameters:
place - the place (vanted)

removePlaceR

public void removePlaceR(org.rakiura.cpn.Place p)
Removes the place r (vanted, rakiura).

Parameters:
p - the place (rakiura)

getPlaceV

public Place getPlaceV(org.rakiura.cpn.Place p)
Gets the place v.

Parameters:
p - the place (rakiura)
Returns:
the place v (vanted)

getPlaceR

public org.rakiura.cpn.Place getPlaceR(Place place)
Gets the place r (rakiura).

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

getAllPlacesV

public java.util.List<Place> getAllPlacesV()
Gets the all places v (vanted).

Returns:
the all places v (vanted)

getAllPlacesR

public java.util.List<org.rakiura.cpn.Place> getAllPlacesR()
Gets the all places r (rakiura).

Returns:
the all places r (rakiura)

containsKeyR

public boolean containsKeyR(org.rakiura.cpn.Place p)
Contains key r.

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

containsKeyV

public boolean containsKeyV(Place place)
Contains key v.

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