org.jscience.geography
Class BusinessPlace

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

public class BusinessPlace
extends OwnedPlace

A class representing a business spot where humans work but don't live.


Constructor Summary
BusinessPlace(java.lang.String name, Boundary boundary, Address address, java.util.Set owners)
          public BusinessPlace(Boundary boundary, Address address, Organization organization) { super(organization.getName(), boundary, organization.getOwners()); if ((organization !
 
Method Summary
 Address getAddress()
          DOCUMENT ME!
 Organization getOrganization()
          DOCUMENT ME!
protected  void setOrganization(Organization organization)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.geography.OwnedPlace
addOwner, getOwners, getValue, removeOwner, setOwners, setValue
 
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

BusinessPlace

public BusinessPlace(java.lang.String name,
                     Boundary boundary,
                     Address address,
                     java.util.Set owners)
public BusinessPlace(Boundary boundary, Address address, Organization organization) { super(organization.getName(), boundary, organization.getOwners()); if ((organization != null) && (address != null)) { this.address = address; address.setPosition(this); } else { throw new IllegalArgumentException( "The BusinessPlace constructor can't have null address or Organization."); }}

Parameters:
name - DOCUMENT ME!
boundary - DOCUMENT ME!
address - DOCUMENT ME!
owners - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!
Method Detail

getAddress

public Address getAddress()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getOrganization

public Organization getOrganization()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setOrganization

protected void setOrganization(Organization organization)
DOCUMENT ME!

Parameters:
organization - DOCUMENT ME!