org.jscience.economics.resources
Class Tool

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

public abstract class Tool
extends Object

A class representing a tool.

See Also:
Serialized Form

Constructor Summary
Tool(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 Tool object.
 
Method Summary
abstract  void act(int i, Object[] objects)
          DOCUMENT ME!
abstract  java.lang.String getActionName(int i)
          DOCUMENT ME!
 int getNumActions()
          DOCUMENT ME!
 java.lang.String getPurpose()
          DOCUMENT ME!
 PotentialResource[] getTargets()
          DOCUMENT ME!
 void setNumActions(int acts)
          DOCUMENT ME!
 void setPurpose(java.lang.String purpose)
          DOCUMENT ME!
 void setTargets(Resource[] targets)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.economics.resources.Artifact
getGroup, isBroken, setGroup, setIsBroken
 
Methods inherited from class org.jscience.economics.MaterialResource
equals, getIdentification, getValue, setValue
 
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

Tool

public Tool(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 Tool 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

getPurpose

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

Returns:
DOCUMENT ME!

setPurpose

public void setPurpose(java.lang.String purpose)
DOCUMENT ME!

Parameters:
purpose - DOCUMENT ME!

getTargets

public PotentialResource[] getTargets()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setTargets

public void setTargets(Resource[] targets)
DOCUMENT ME!

Parameters:
targets - DOCUMENT ME!

getNumActions

public int getNumActions()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setNumActions

public void setNumActions(int acts)
DOCUMENT ME!

Parameters:
acts - DOCUMENT ME!

getActionName

public abstract java.lang.String getActionName(int i)
DOCUMENT ME!

Parameters:
i - DOCUMENT ME!
Returns:
DOCUMENT ME!

act

public abstract void act(int i,
                         Object[] objects)
DOCUMENT ME!

Parameters:
i - DOCUMENT ME!
objects - DOCUMENT ME!