Class Machine
- All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named, Positioned<Place>, Temporal<TimeCoordinate>, Property
Represents a complex tool (machine) that consumes energy to perform work.
- Since:
- 1.0
- Version:
- 1.1
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class PotentialResource
id, traits -
Constructor Summary
ConstructorsConstructorDescriptionMachine(String name, String description, Quantity<?> amount, Community producer, Place productionPlace, TimeCoordinate productionDate, Identification identification, Money value) Initializes a new machine. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisOn()voidsetEnergySources(Set<String> energySources) voidMethods inherited from class Tool
act, getActionName, getNumActions, getPurpose, getTargets, setNumActions, setPurpose, setTargetsMethods 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
-
Field Details
-
SOLAR
- See Also:
-
VAPOR
- See Also:
-
WIND
- See Also:
-
GAS
- See Also:
-
WOOD
- See Also:
-
COAL
- See Also:
-
FUEL
- See Also:
-
ELECTRICITY
- See Also:
-
WATERFALL
- See Also:
-
MUSCULAR
- See Also:
-
-
Constructor Details
-
Machine
public Machine(String name, String description, Quantity<?> amount, Community producer, Place productionPlace, TimeCoordinate productionDate, Identification identification, Money value) Initializes a new machine.
-
-
Method Details
-
isOn
public boolean isOn() -
switchStatus
public void switchStatus() -
getEnergySources
-
setEnergySources
-