org.jscience.economics
Class MaterialResource

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

public class MaterialResource
extends Resource
implements Property, java.io.Serializable

A class representing a modern (material) resource, that is tagged.

See Also:
Serialized Form

Constructor Summary
MaterialResource(java.lang.String name, java.lang.String description, Amount amount, Community producer, Identification identification, Amount<Money> value)
          Creates a new MaterialResource object.
MaterialResource(java.lang.String name, java.lang.String description, Amount amount, Community producer, Place productionPlace, java.util.Date productionDate, Identification identification, Amount<Money> value)
          Creates a new MaterialResource object.
 
Method Summary
 boolean equals(java.lang.Object o)
          DOCUMENT ME!
 Identification getIdentification()
          DOCUMENT ME!
 Amount<Money> getValue()
          DOCUMENT ME!
 void setValue(Amount<Money> money)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.economics.Resource
addOwner, getOwners, getPosition, getProducer, getProductionDate, getProductionPlace, removeOwner, setOwners, setPosition
 
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
 
Methods inherited from interface org.jscience.economics.Property
getOwners
 

Constructor Detail

MaterialResource

public MaterialResource(java.lang.String name,
                        java.lang.String description,
                        Amount amount,
                        Community producer,
                        Identification identification,
                        Amount<Money> value)
Creates a new MaterialResource object.

Parameters:
name - DOCUMENT ME!
description - DOCUMENT ME!
amount - DOCUMENT ME!
producer - DOCUMENT ME!
identification - DOCUMENT ME!
value - DOCUMENT ME!

MaterialResource

public MaterialResource(java.lang.String name,
                        java.lang.String description,
                        Amount amount,
                        Community producer,
                        Place productionPlace,
                        java.util.Date productionDate,
                        Identification identification,
                        Amount<Money> value)
Creates a new MaterialResource object.

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

getIdentification

public Identification getIdentification()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getValue

public Amount<Money> getValue()
DOCUMENT ME!

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

setValue

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

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

equals

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

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