org.jscience.politics
Class Country

java.lang.Object
  extended by org.jscience.geography.Place
      extended by org.jscience.politics.Country
All Implemented Interfaces:
Named, Positioned

public class Country
extends Place
implements Named

A class representing the basic facts about a country (the modern tribe) or also kingdoms, empires...


Constructor Summary
Country(java.lang.String name, Nation nation, City capital)
          Creates a new Country object.
 
Method Summary
 void addCity(City city)
          DOCUMENT ME!
protected  void addRegion(Region region)
          DOCUMENT ME!
 boolean containsCity(City city)
          DOCUMENT ME!
 boolean containsRegion(Region region)
          DOCUMENT ME!
 Administration getArmy()
          DOCUMENT ME!
 City getCapital()
          DOCUMENT ME!
 java.util.Set getCities()
          DOCUMENT ME!
 Currency getCurrency()
          DOCUMENT ME!
 java.awt.Image getFlag()
          DOCUMENT ME!
 double getGDP()
          DOCUMENT ME!
 double getGNP()
          DOCUMENT ME!
 Administration getJustice()
          DOCUMENT ME!
 java.lang.String getName()
          DOCUMENT ME!
 Nation getNation()
          DOCUMENT ME!
 Administration getPolice()
          DOCUMENT ME!
 java.util.Set getRegions()
          DOCUMENT ME!
 void removeCity(City city)
          DOCUMENT ME!
 void removeRegion(Region region)
          DOCUMENT ME!
 void setArmy(Administration army)
          DOCUMENT ME!
 void setCapital(City capital)
          DOCUMENT ME!
 void setCurrency(Currency currency)
          DOCUMENT ME!
 void setFlag(java.awt.Image flag)
          DOCUMENT ME!
 void setGDP(double gdp)
          DOCUMENT ME!
 void setGNP(double gnp)
          DOCUMENT ME!
 void setJustice(Administration justice)
          DOCUMENT ME!
 void setPolice(Administration police)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.geography.Place
getBoundary, getPosition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Country

public Country(java.lang.String name,
               Nation nation,
               City capital)
Creates a new Country object.

Parameters:
name - DOCUMENT ME!
nation - DOCUMENT ME!
capital - DOCUMENT ME!
Method Detail

getName

public java.lang.String getName()
DOCUMENT ME!

Specified by:
getName in interface Named
Overrides:
getName in class Place
Returns:
DOCUMENT ME!

getNation

public Nation getNation()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getArmy

public Administration getArmy()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setArmy

public void setArmy(Administration army)
DOCUMENT ME!

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

getPolice

public Administration getPolice()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setPolice

public void setPolice(Administration police)
DOCUMENT ME!

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

getJustice

public Administration getJustice()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setJustice

public void setJustice(Administration justice)
DOCUMENT ME!

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

getCurrency

public Currency getCurrency()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setCurrency

public void setCurrency(Currency currency)
DOCUMENT ME!

Parameters:
currency - DOCUMENT ME!

getGDP

public double getGDP()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setGDP

public void setGDP(double gdp)
DOCUMENT ME!

Parameters:
gdp - DOCUMENT ME!

getGNP

public double getGNP()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setGNP

public void setGNP(double gnp)
DOCUMENT ME!

Parameters:
gnp - DOCUMENT ME!

getFlag

public java.awt.Image getFlag()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setFlag

public void setFlag(java.awt.Image flag)
DOCUMENT ME!

Parameters:
flag - DOCUMENT ME!

getCapital

public City getCapital()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setCapital

public void setCapital(City capital)
DOCUMENT ME!

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

addCity

public void addCity(City city)
DOCUMENT ME!

Parameters:
city - DOCUMENT ME!

removeCity

public void removeCity(City city)
DOCUMENT ME!

Parameters:
city - DOCUMENT ME!

getCities

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

Returns:
DOCUMENT ME!

containsCity

public boolean containsCity(City city)
DOCUMENT ME!

Parameters:
city - DOCUMENT ME!
Returns:
DOCUMENT ME!

addRegion

protected void addRegion(Region region)
DOCUMENT ME!

Parameters:
region - DOCUMENT ME!

removeRegion

public void removeRegion(Region region)
DOCUMENT ME!

Parameters:
region - DOCUMENT ME!

getRegions

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

Returns:
DOCUMENT ME!

containsRegion

public boolean containsRegion(Region region)
DOCUMENT ME!

Parameters:
region - DOCUMENT ME!
Returns:
DOCUMENT ME!