Class Artifact
java.lang.Object
org.episteme.social.economics.PotentialResource
org.episteme.social.economics.Resource
org.episteme.social.economics.MaterialResource
org.episteme.social.economics.resources.Artifact
- All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named, Positioned<Place>, Temporal<TimeCoordinate>, Property
- Direct Known Subclasses:
Artwork, Building, Building, Installation, PhysicalObject, Road
Represents a resource created by human craftsmanship (an artifact).
Artifacts are the result of human craftsmanship and have a specific purpose.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Field Summary
Fields inherited from class PotentialResource
id, traits -
Constructor Summary
ConstructorsConstructorDescriptionArtifact(String name, String description, Quantity<?> amount, Community producer, Place productionPlace, TimeCoordinate productionDate, Identification identification, Money value) Initializes a new artifact. -
Method Summary
Methods inherited from class MaterialResource
equals, getValue, hashCode, 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, setQuantity, toStringMethods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getName, getTrait, setName, setTrait
-
Constructor Details
-
Artifact
public Artifact(String name, String description, Quantity<?> amount, Community producer, Place productionPlace, TimeCoordinate productionDate, Identification identification, Money value) Initializes a new artifact.
-
-
Method Details
-
isBroken
public boolean isBroken()Checks if the artifact is broken.- Returns:
- true if broken, false otherwise
-
setBroken
public void setBroken(boolean broken) Sets the functional state of the artifact.- Parameters:
broken- true if broken, false otherwise
-