morey.spore
Class Link

java.lang.Object
  |
  +--morey.spore.Link

public class Link
extends java.lang.Object

a link between a ProximityList and a spore or RPolygon. A Link can be use for the active spores and also the claims. This is mainly a book keeper so that if a spore a claim needs to be removed, then this list in the Link can be used to remove all references to the spore or claim.

Here is a link to the source code

See Also:
ProximityList

Field Summary
protected  RPolygon polygon
          the particular polygon that the Link is concerned about
protected  Spore spore
          the particular spore that the Link is concerned about
 
Constructor Summary
Link(RPolygon p)
          simple constructor with a RPolygon.
Link(Spore s)
          simple constructor with a Spore.
 
Method Summary
 void addLink(java.util.Vector v)
          remove this Link from all the chart
 void removeLink()
          remove this Link from all the charts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

polygon

protected RPolygon polygon
the particular polygon that the Link is concerned about

spore

protected Spore spore
the particular spore that the Link is concerned about
Constructor Detail

Link

public Link(RPolygon p)
simple constructor with a RPolygon. This really means that it's a Link from a claim
Parameters:
p - - the RPolygon that describes the claim

Link

public Link(Spore s)
simple constructor with a Spore. This really means that it's a Link from a spore -- a spawn
Parameters:
s - - the spore
Method Detail

removeLink

public void removeLink()
remove this Link from all the charts

addLink

public void addLink(java.util.Vector v)
remove this Link from all the chart
Parameters:
v - - the Vector which will be recorded in the Link