Uses of Class
org.mars_sim.msp.core.Unit

Packages that use Unit
org.mars_sim.msp.core Contains classes for creating a virtual Mars. 
org.mars_sim.msp.core.equipment Contains classes involving equipment units. 
org.mars_sim.msp.core.person Contains classes involving person units. 
org.mars_sim.msp.core.person.ai.task Contains classes involving tasks a person can perform. 
org.mars_sim.msp.core.person.medical Contains classes involving a person's medical situation. 
org.mars_sim.msp.core.structure Contains classes involving structure units. 
org.mars_sim.msp.core.vehicle Contains classes involving vehicle units. 
 

Uses of Unit in org.mars_sim.msp.core
 

Methods in org.mars_sim.msp.core with type parameters of type Unit
static
<T extends Unit>
java.util.Collection<T>
CollectionUtils.sortByName(java.util.Collection<T> collection)
           
static
<T extends Unit>
java.util.Collection<T>
CollectionUtils.sortByProximity(java.util.Collection<T> collection, Coordinates location)
           
 

Methods in org.mars_sim.msp.core that return Unit
 Unit UnitManager.findUnit(java.lang.String name)
          Finds a unit in the simulation that has the given name.
 Unit Inventory.findUnitOfClass(java.lang.Class unitClass)
          Finds a unit of a given class in storage.
 Unit Unit.getContainerUnit()
          Gets the unit's container unit.
 Unit Unit.getTopContainerUnit()
          Gets the topmost container unit that owns this unit.
 Unit UnitManagerEvent.getUnit()
          Gets the unit target of this event.
 

Methods in org.mars_sim.msp.core that return types with arguments of type Unit
 java.util.Collection<Unit> Inventory.findAllUnitsOfClass(java.lang.Class unitClass)
          Finds all of the units of a class in storage.
 java.util.Collection<Unit> Inventory.getContainedUnits()
          Gets a collection of all the stored units.
 java.util.Collection<Unit> UnitManager.getUnits()
          Get all units in virtual Mars
 

Methods in org.mars_sim.msp.core with parameters of type Unit
 void UnitManager.addUnit(Unit unit)
          Adds a unit to the unit manager if it doesn't already have it.
 boolean Inventory.canStoreUnit(Unit unit)
          Checks if a unit can be stored.
 Inventory Inventory.clone(Unit owner)
          Creates a clone of this inventory (not including the inventory contents).
 int Unit.compareTo(Unit o)
          Compares this object with the specified object for order.
 boolean Inventory.containsUnit(Unit unit)
          Checks if a unit is in storage.
 void UnitManager.fireUnitManagerUpdate(java.lang.String eventType, Unit unit)
          Fire a unit update event.
 void Inventory.retrieveUnit(Unit unit)
          Retrieves a unit from storage.
 void Unit.setContainerUnit(Unit containerUnit)
          Sets the unit's container unit.
 void Inventory.storeUnit(Unit unit)
          Stores a unit.
 

Method parameters in org.mars_sim.msp.core with type arguments of type Unit
static java.util.Collection<Equipment> CollectionUtils.getEquipment(java.util.Collection<Unit> units)
           
static java.util.Collection<Person> CollectionUtils.getPerson(java.util.Collection<Unit> units)
           
static java.util.Collection<Settlement> CollectionUtils.getSettlement(java.util.Collection<Unit> units)
           
static java.util.Collection<Vehicle> CollectionUtils.getVehicle(java.util.Collection<Unit> units)
           
static void CollectionUtils.mergeEquipments(java.util.Collection<Unit> units, java.util.Collection<Equipment> equipments)
           
static void CollectionUtils.mergePersons(java.util.Collection<Unit> units, java.util.Collection<Person> persons)
           
static void CollectionUtils.mergeSettlements(java.util.Collection<Unit> units, java.util.Collection<Settlement> settlements)
           
static void CollectionUtils.mergeVehicles(java.util.Collection<Unit> units, java.util.Collection<Vehicle> vehicles)
           
 

Constructors in org.mars_sim.msp.core with parameters of type Unit
Inventory(Unit owner)
          Constructor
UnitEvent(Unit source, java.lang.String type, java.lang.Object target)
          Constructor
 

Uses of Unit in org.mars_sim.msp.core.equipment
 

Subclasses of Unit in org.mars_sim.msp.core.equipment
 class Bag
          A bag container for holding solid amount resources.
 class Barrel
          A barrel container for holding liquid amount resources.
 class Equipment
          The Equipment class is an abstract class that represents a useful piece of equipment, such as a EVA suite or a medpack.
 class EVASuit
          The EVASuit class represents an EVA suit which provides life support for a person during a EVA operation.
 class GasCanister
          A canister container for holding gas amount resources.
 class LargeBag
          A large bag container for holding solid amount resources.
 class SpecimenContainer
          A specialized container for holding rock samples.
 

Uses of Unit in org.mars_sim.msp.core.person
 

Subclasses of Unit in org.mars_sim.msp.core.person
 class Person
          The Person class represents a person on Mars.
 

Methods in org.mars_sim.msp.core.person with parameters of type Unit
 void PhysicalCondition.consumeFood(double amount, Unit container)
          Person consumes given amount of food
 void Person.setContainerUnit(Unit containerUnit)
          Sets the unit's container unit.
 

Uses of Unit in org.mars_sim.msp.core.person.ai.task
 

Fields in org.mars_sim.msp.core.person.ai.task declared as Unit
protected  Unit EVAOperation.containerUnit
           
 

Uses of Unit in org.mars_sim.msp.core.person.medical
 

Methods in org.mars_sim.msp.core.person.medical that return Unit
 Unit DeathInfo.getContainerUnit()
          Gets the container unit at the time of death.
 

Uses of Unit in org.mars_sim.msp.core.structure
 

Subclasses of Unit in org.mars_sim.msp.core.structure
 class Settlement
          The Settlement class represents a settlement unit on virtual Mars.
 class Structure
          The Structure class is an abstract class that represents a man-made structure such as a settlement, a transponder or a supply cache.
 

Uses of Unit in org.mars_sim.msp.core.vehicle
 

Subclasses of Unit in org.mars_sim.msp.core.vehicle
 class GroundVehicle
          The GroundVehicle class represents a ground-type vehicle.
 class LightUtilityVehicle
          A light utility vehicle that can be used for construction, loading and mining.
 class Rover
          The Rover class represents the rover type of ground vehicle.
 class Vehicle
          The Vehicle class represents a generic vehicle.