Class Artwork
- All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named, Positioned<Place>, Temporal<TimeCoordinate>, Property
- Direct Known Subclasses:
Book, Choreography, Composition, Film, Picture
Represents a piece of art (Artwork), integrating historical, geographical,
economic, and scientific dimensions. This class serves as the central model
for artworks, tracking their production, authorship, valuation, and
conservation history.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Field Summary
Fields inherited from class PotentialResource
id, traits -
Constructor Summary
ConstructorsConstructorDescriptionArtwork(String name, String description, Quantity<?> amount, Community producer, Place productionPlace, TimeCoordinate productionDate, Identification identification, Money value, ArtForm category) Full constructor for Artwork as a resource.Artwork(String name, String description, TimeCoordinate productionDate, Place productionPlace, ArtForm category) Creates a new Artwork. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAnalysis(Analysis analysis) voidvoidvoidaddRestoration(Restoration restoration) booleaninthashCode()toString()Methods inherited from class MaterialResource
getValue, setValueMethods inherited from class Resource
addOwner, getOwners, getPosition, getProducer, getProductionDate, getProductionPlace, getTimestamp, getWhen, removeOwner, setId, setOwners, setPositionMethods inherited from class PotentialResource
getAmount, getDecayTime, getDescription, getId, getKind, getTraits, setDecaySeconds, setDecayTime, setDescription, setKind, setQuantityMethods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getName, getTrait, setName, setTrait
-
Constructor Details
-
Artwork
public Artwork(String name, String description, TimeCoordinate productionDate, Place productionPlace, ArtForm category) Creates a new Artwork.- Parameters:
name- common name of the workdescription- detailed descriptionproductionDate- estimated or precise date of creationproductionPlace- location where the work was createdcategory- the form of art (e.g., PAINTING, SCULPTURE)
-
Artwork
public Artwork(String name, String description, Quantity<?> amount, Community producer, Place productionPlace, TimeCoordinate productionDate, Identification identification, Money value, ArtForm category) Full constructor for Artwork as a resource.
-
-
Method Details
-
getCategory
-
getAuthors
-
addAuthor
-
addAuthor
-
getAnalyses
-
addAnalysis
-
getRestorations
-
addRestoration
-
toString
- Overrides:
toStringin classPotentialResource
-
equals
- Overrides:
equalsin classMaterialResource
-
hashCode
public int hashCode()- Overrides:
hashCodein classMaterialResource
-