org.jscience.economics.resources
Class Machine

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
                          extended by org.jscience.economics.resources.Machine
All Implemented Interfaces:
java.io.Serializable, Property, Named, Positioned
Direct Known Subclasses:
Robot, Vehicle

public abstract class Machine
extends Tool

A class representing Machine.

See Also:
Serialized Form

Field Summary
static java.lang.String COIL
          DOCUMENT ME!
static java.lang.String ELECTRICITY
          DOCUMENT ME!
static java.lang.String FUEL
          DOCUMENT ME!
static java.lang.String GAZ
          DOCUMENT ME!
static java.lang.String MUSCULAR
          DOCUMENT ME!
static java.lang.String SOLAR
          DOCUMENT ME!
static java.lang.String VAPOR
          DOCUMENT ME!
static java.lang.String WATERFALL
          DOCUMENT ME!
static java.lang.String WIND
          DOCUMENT ME!
static java.lang.String WOOD
          DOCUMENT ME!
 
Constructor Summary
Machine(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 Machine object.
 
Method Summary
 java.util.Set getEnergySources()
          DOCUMENT ME!
 boolean isOn()
          DOCUMENT ME!
 void setEnergySources(java.util.Set energySources)
          DOCUMENT ME!
 void switchStatus()
          DOCUMENT ME!
 
Methods inherited from class org.jscience.economics.resources.Tool
act, getActionName, getNumActions, getPurpose, getTargets, setNumActions, setPurpose, setTargets
 
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
 

Field Detail

SOLAR

public static final java.lang.String SOLAR
DOCUMENT ME!

See Also:
Constant Field Values

VAPOR

public static final java.lang.String VAPOR
DOCUMENT ME!

See Also:
Constant Field Values

WIND

public static final java.lang.String WIND
DOCUMENT ME!

See Also:
Constant Field Values

GAZ

public static final java.lang.String GAZ
DOCUMENT ME!

See Also:
Constant Field Values

WOOD

public static final java.lang.String WOOD
DOCUMENT ME!

See Also:
Constant Field Values

COIL

public static final java.lang.String COIL
DOCUMENT ME!

See Also:
Constant Field Values

FUEL

public static final java.lang.String FUEL
DOCUMENT ME!

See Also:
Constant Field Values

ELECTRICITY

public static final java.lang.String ELECTRICITY
DOCUMENT ME!

See Also:
Constant Field Values

WATERFALL

public static final java.lang.String WATERFALL
DOCUMENT ME!

See Also:
Constant Field Values

MUSCULAR

public static final java.lang.String MUSCULAR
DOCUMENT ME!

See Also:
Constant Field Values
Constructor Detail

Machine

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

isOn

public boolean isOn()
DOCUMENT ME!

Returns:
DOCUMENT ME!

switchStatus

public void switchStatus()
DOCUMENT ME!


getEnergySources

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

Returns:
DOCUMENT ME!

setEnergySources

public void setEnergySources(java.util.Set energySources)
DOCUMENT ME!

Parameters:
energySources - DOCUMENT ME!