Class Resource
java.lang.Object
org.episteme.social.economics.PotentialResource
org.episteme.social.economics.Resource
- All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named, Positioned<Place>, Temporal<TimeCoordinate>
- Direct Known Subclasses:
HumanResource, MaterialResource, Thing
public class Resource
extends PotentialResource
implements Positioned<Place>, Temporal<TimeCoordinate>
A class representing a physical or virtual resource with ownership, position, and temporal attributes.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Field Summary
Fields inherited from class PotentialResource
id, traits -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new Resource object.Resource(String name, String description, Quantity<?> amount, Community producer, Place productionPlace, TimeCoordinate productionDate) Creates a new Resource object.Resource(Identification id, String name, String description, Quantity<?> amount, Community producer, Place productionPlace, TimeCoordinate productionDate) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOwner(EconomicAgent owner) booleanReturns the position of this entity.Deprecated.getWhen()Returns the temporal position (when) of this entity.inthashCode()voidremoveOwner(EconomicAgent owner) voidsetId(Identification identification) voidsetOwners(Set<EconomicAgent> owners) voidsetPosition(Place place) Methods 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
-
Resource
-
Resource
-
Resource
public Resource(Identification id, String name, String description, Quantity<?> amount, Community producer, Place productionPlace, TimeCoordinate productionDate)
-
-
Method Details
-
setId
-
getProducer
-
getOwners
-
addOwner
-
removeOwner
-
setOwners
-
getProductionPlace
-
getPosition
Description copied from interface:PositionedReturns the position of this entity.- Specified by:
getPositionin interfacePositioned<Place>- Returns:
- the position.
-
setPosition
-
getWhen
Description copied from interface:TemporalReturns the temporal position (when) of this entity.- Specified by:
getWhenin interfaceTemporal<TimeCoordinate>- Returns:
- the temporal position.
-
getTimestamp
Deprecated. -
getProductionDate
-
equals
- Overrides:
equalsin classPotentialResource
-
hashCode
public int hashCode()- Overrides:
hashCodein classPotentialResource
-