org.jscience.economics
Class Resource

java.lang.Object
  extended by org.jscience.economics.PotentialResource
      extended by org.jscience.economics.Resource
All Implemented Interfaces:
java.io.Serializable, Named, Positioned
Direct Known Subclasses:
HumanResource, MaterialResource, Thing

public class Resource
extends PotentialResource
implements Positioned

A class representing the stuff that is extracted from the soil (coil, fruits...), a final product or human labor. A product is usually a resource for another factory/consumer.

See Also:
Serialized Form

Constructor Summary
Resource(java.lang.String name, java.lang.String description, Amount amount, Community community)
          Creates a new Resource object.
Resource(java.lang.String name, java.lang.String description, Amount amount, Community producer, Place productionPlace, java.util.Date productionDate)
          Creates a new Resource object.
 
Method Summary
 void addOwner(Individual owner)
          DOCUMENT ME!
 boolean equals(java.lang.Object o)
          DOCUMENT ME!
 java.util.Set getOwners()
          DOCUMENT ME!
 Place getPosition()
          DOCUMENT ME!
 Community getProducer()
          DOCUMENT ME!
 java.util.Date getProductionDate()
          DOCUMENT ME!
 Place getProductionPlace()
          DOCUMENT ME!
 void removeOwner(Individual owner)
          DOCUMENT ME!
 void setOwners(java.util.Set owners)
          DOCUMENT ME!
 void setPosition(Place place)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.economics.PotentialResource
getAmount, getDecayTime, getDescription, getKind, getName, setDecayTime, setKind, setQuantity
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Resource

public Resource(java.lang.String name,
                java.lang.String description,
                Amount amount,
                Community community)
Creates a new Resource object.

Parameters:
name - DOCUMENT ME!
description - DOCUMENT ME!
amount - DOCUMENT ME!
community - DOCUMENT ME!

Resource

public Resource(java.lang.String name,
                java.lang.String description,
                Amount amount,
                Community producer,
                Place productionPlace,
                java.util.Date productionDate)
Creates a new Resource object.

Parameters:
name - DOCUMENT ME!
description - DOCUMENT ME!
amount - DOCUMENT ME!
producer - DOCUMENT ME!
productionPlace - DOCUMENT ME!
productionDate - DOCUMENT ME!
Method Detail

getProducer

public Community getProducer()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getOwners

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

Returns:
DOCUMENT ME!

addOwner

public void addOwner(Individual owner)
DOCUMENT ME!

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

removeOwner

public void removeOwner(Individual 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!

getProductionPlace

public Place getProductionPlace()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getPosition

public Place getPosition()
DOCUMENT ME!

Specified by:
getPosition in interface Positioned
Returns:
DOCUMENT ME!

setPosition

public void setPosition(Place place)
DOCUMENT ME!

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

getProductionDate

public java.util.Date getProductionDate()
DOCUMENT ME!

Returns:
DOCUMENT ME!

equals

public boolean equals(java.lang.Object o)
DOCUMENT ME!

Overrides:
equals in class PotentialResource
Parameters:
o - DOCUMENT ME!
Returns:
DOCUMENT ME!