Class Vehicle
java.lang.Object
- All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named, Positioned<Place>, Temporal<TimeCoordinate>, Property, Store
-
Field Summary
Fields inherited from class Machine
COAL, ELECTRICITY, FUEL, GAS, MUSCULAR, SOLAR, VAPOR, WATERFALL, WIND, WOODFields inherited from class PotentialResource
id, traits -
Constructor Summary
ConstructorsConstructorDescriptionVehicle(String name, String description, Quantity<?> amount, Community producer, Place productionPlace, TimeCoordinate productionDate, Identification identification, Money value) Initializes a new vehicle. -
Method Summary
Methods inherited from class Machine
getEnergySources, isOn, setEnergySources, switchStatusMethods 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
-
Constructor Details
-
Vehicle
public Vehicle(String name, String description, Quantity<?> amount, Community producer, Place productionPlace, TimeCoordinate productionDate, Identification identification, Money value) Initializes a new vehicle.
-
-
Method Details
-
getContents
Description copied from interface:StoreReturns an unmodifiable view of the contents.- Specified by:
getContentsin interfaceStore- Returns:
- the set of contained resources
-
getIn
-
getOut
-