org.jscience.arts
Class Artwork

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.arts.Artwork
All Implemented Interfaces:
java.io.Serializable, Property, Named, Positioned
Direct Known Subclasses:
Book, Choregraphy, Composition, Movie, Picture, Play, Recipe

public class Artwork
extends Artifact

A class representing a piece of art.

See Also:
Serialized Form

Constructor Summary
Artwork(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 Artwork object.
Artwork(java.lang.String name, java.lang.String description, Amount amount, Community producer, Place productionPlace, java.util.Date productionDate, Identification identification, Amount<Money> value, java.util.Set authors)
          Creates a new Artwork object.
Artwork(java.lang.String name, java.lang.String description, Amount amount, Community producer, Place productionPlace, java.util.Date productionDate, Identification identification, Amount<Money> value, java.util.Set authors, int art)
           
 
Method Summary
 void addAnalysis(Analysis analysis)
          DOCUMENT ME!
 void addRestoration(Restoration restoration)
          DOCUMENT ME!
 boolean equals(java.lang.Object o)
          DOCUMENT ME!
 java.util.Set getAnalysis()
           
 int getArt()
          DOCUMENT ME!
 java.util.Set getAuthors()
           
 java.util.Set getRestorations()
           
 void removeAnalysis(Analysis analysis)
          DOCUMENT ME!
 void removeRestoration(Restoration restoration)
          DOCUMENT ME!
 void setAnalysis(java.util.Set analysis)
           
 void setAuthors(java.util.Set authors)
          DOCUMENT ME!
 void setRestorations(java.util.Set restorations)
           
 
Methods inherited from class org.jscience.economics.resources.Artifact
getGroup, isBroken, setGroup, setIsBroken
 
Methods inherited from class org.jscience.economics.MaterialResource
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

Artwork

public Artwork(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 Artwork 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!

Artwork

public Artwork(java.lang.String name,
               java.lang.String description,
               Amount amount,
               Community producer,
               Place productionPlace,
               java.util.Date productionDate,
               Identification identification,
               Amount<Money> value,
               java.util.Set authors)
Creates a new Artwork 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!
authors - DOCUMENT ME!

Artwork

public Artwork(java.lang.String name,
               java.lang.String description,
               Amount amount,
               Community producer,
               Place productionPlace,
               java.util.Date productionDate,
               Identification identification,
               Amount<Money> value,
               java.util.Set authors,
               int art)
Method Detail

getAuthors

public java.util.Set getAuthors()

setAuthors

public void setAuthors(java.util.Set authors)
DOCUMENT ME!

Parameters:
authors - DOCUMENT ME!

getArt

public int getArt()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getAnalysis

public java.util.Set getAnalysis()

addAnalysis

public void addAnalysis(Analysis analysis)
DOCUMENT ME!

Parameters:
analysis - DOCUMENT ME!

removeAnalysis

public void removeAnalysis(Analysis analysis)
DOCUMENT ME!

Parameters:
analysis - DOCUMENT ME!

setAnalysis

public void setAnalysis(java.util.Set analysis)

getRestorations

public java.util.Set getRestorations()

addRestoration

public void addRestoration(Restoration restoration)
DOCUMENT ME!

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

removeRestoration

public void removeRestoration(Restoration restoration)
DOCUMENT ME!

Parameters:
restoration - DOCUMENT ME!

setRestorations

public void setRestorations(java.util.Set restorations)

equals

public boolean equals(java.lang.Object o)
Description copied from class: MaterialResource
DOCUMENT ME!

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