org.jscience.geography
Class OwnedPlace

java.lang.Object
  extended by org.jscience.geography.Place
      extended by org.jscience.geography.OwnedPlace
All Implemented Interfaces:
Property, Named, Positioned
Direct Known Subclasses:
BusinessPlace, Home

public class OwnedPlace
extends Place
implements Property

A class representing ahuman owned place.


Constructor Summary
OwnedPlace(java.lang.String name, Boundary boundary, java.util.Set owners)
          Creates a new OwnedPlace object.
 
Method Summary
 void addOwner(Human owner)
          DOCUMENT ME!
 java.util.Set getOwners()
          DOCUMENT ME!
 Amount<Money> getValue()
          DOCUMENT ME!
 void removeOwner(Human owner)
          DOCUMENT ME!
 void setOwners(java.util.Set owners)
          DOCUMENT ME!
 void setValue(Amount<Money> value)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.geography.Place
getBoundary, getName, getPosition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwnedPlace

public OwnedPlace(java.lang.String name,
                  Boundary boundary,
                  java.util.Set owners)
Creates a new OwnedPlace object.

Parameters:
name - DOCUMENT ME!
boundary - DOCUMENT ME!
owners - DOCUMENT ME!
Method Detail

getOwners

public java.util.Set getOwners()
DOCUMENT ME!

Specified by:
getOwners in interface Property
Returns:
DOCUMENT ME!

addOwner

public void addOwner(Human owner)
DOCUMENT ME!

Parameters:
owner - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

removeOwner

public void removeOwner(Human owner)
DOCUMENT ME!

Parameters:
owner - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

setOwners

public void setOwners(java.util.Set owners)
DOCUMENT ME!

Parameters:
owners - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

getValue

public Amount<Money> getValue()
DOCUMENT ME!

Specified by:
getValue in interface Property
Returns:
DOCUMENT ME!

setValue

public void setValue(Amount<Money> value)
DOCUMENT ME!

Parameters:
value - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!