Class Building
java.lang.Object
org.episteme.social.economics.PotentialResource
org.episteme.social.economics.Resource
org.episteme.social.economics.MaterialResource
org.episteme.social.economics.resources.Artifact
org.episteme.social.economics.resources.Building
- All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named, Positioned<Place>, Temporal<TimeCoordinate>, Property, Store
-
Field Summary
Fields inherited from class PotentialResource
id, traits -
Constructor Summary
ConstructorsConstructorDescriptionBuilding(String name, String description, Quantity<?> amount, Community producer, Place productionPlace, TimeCoordinate productionDate, Identification identification, Money value) Initializes a new building resource. -
Method Summary
Modifier and TypeMethodDescriptionReturns an unmodifiable view of the contents.voidgetIn()Procedure for an entity to enter the store.voidgetOut()Procedure for an entity to exit the store.Returns the intended purpose of the building.voidsetPurpose(String purpose) Sets the intended purpose of the building.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
-
Building
public Building(String name, String description, Quantity<?> amount, Community producer, Place productionPlace, TimeCoordinate productionDate, Identification identification, Money value) Initializes a new building resource.
-
-
Method Details
-
getContents
Description copied from interface:StoreReturns an unmodifiable view of the contents.- Specified by:
getContentsin interfaceStore- Returns:
- the set of contained resources
-
getPurpose
Returns the intended purpose of the building.- Returns:
- the purpose string, or null if not set
-
setPurpose
Sets the intended purpose of the building.- Parameters:
purpose- descriptive purpose
-
getIn
-
getOut
-