|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Unit | |
---|---|
org.mars_sim.msp.simulation | Contains classes for creating a virtual Mars. |
org.mars_sim.msp.simulation.equipment | Contains classes involving equipment units. |
org.mars_sim.msp.simulation.person | Contains classes involving person units. |
org.mars_sim.msp.simulation.person.ai.task | Contains classes involving tasks a person can perform. |
org.mars_sim.msp.simulation.person.medical | Contains classes involving a person's medical situation. |
org.mars_sim.msp.simulation.structure | Contains classes involving structure units. |
org.mars_sim.msp.simulation.vehicle | Contains classes involving vehicle units. |
org.mars_sim.msp.ui.standard | Contains classes for creating the standard user interface for a virtual Mars. |
org.mars_sim.msp.ui.standard.tool.map | Contains the mars simulation map related UI components |
org.mars_sim.msp.ui.standard.tool.monitor | Contains classes for creating a monitor tool window. |
org.mars_sim.msp.ui.standard.tool.navigator | Contains classes for creating a navigator tool window. |
org.mars_sim.msp.ui.standard.unit_display_info | Contains classes for unit display information. |
org.mars_sim.msp.ui.standard.unit_window | Contains classes for unit windows. |
org.mars_sim.msp.ui.standard.unit_window.person | Contains classes for person windows. |
org.mars_sim.msp.ui.standard.unit_window.structure | Contains classes for structure windows. |
org.mars_sim.msp.ui.standard.unit_window.vehicle | Contains classes for vehicle windows. |
Uses of Unit in org.mars_sim.msp.simulation |
---|
Subclasses of Unit in org.mars_sim.msp.simulation | |
---|---|
class |
MockUnit1
A mock unit used for unit testing. |
class |
MockUnit2
|
Methods in org.mars_sim.msp.simulation with type parameters of type Unit | ||
---|---|---|
static
|
CollectionUtils.sortByName(java.util.Collection<T> collection)
|
|
static
|
CollectionUtils.sortByProximity(java.util.Collection<T> collection,
Coordinates location)
|
Methods in org.mars_sim.msp.simulation 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.simulation 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.simulation 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). |
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.simulation 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.simulation 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.simulation.equipment |
---|
Subclasses of Unit in org.mars_sim.msp.simulation.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 |
SpecimenContainer
A specialized container for holding rock samples. |
Uses of Unit in org.mars_sim.msp.simulation.person |
---|
Subclasses of Unit in org.mars_sim.msp.simulation.person | |
---|---|
class |
Person
The Person class represents a person on Mars. |
Methods in org.mars_sim.msp.simulation.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.simulation.person.ai.task |
---|
Fields in org.mars_sim.msp.simulation.person.ai.task declared as Unit | |
---|---|
protected Unit |
EVAOperation.containerUnit
|
Uses of Unit in org.mars_sim.msp.simulation.person.medical |
---|
Methods in org.mars_sim.msp.simulation.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.simulation.structure |
---|
Subclasses of Unit in org.mars_sim.msp.simulation.structure | |
---|---|
class |
MockSettlement
|
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.simulation.vehicle |
---|
Subclasses of Unit in org.mars_sim.msp.simulation.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 |
MockVehicle
|
class |
Rover
The Rover class represents the rover type of ground vehicle. |
class |
Vehicle
The Vehicle class represents a generic vehicle. |
Uses of Unit in org.mars_sim.msp.ui.standard |
---|
Methods in org.mars_sim.msp.ui.standard that return Unit | |
---|---|
Unit |
UnitButton.getUnit()
Gets the button's unit. |
Unit[] |
UnitToolBar.getUnitsInToolBar()
Gets all the units in the toolbar. |
Methods in org.mars_sim.msp.ui.standard with parameters of type Unit | |
---|---|
void |
MainWindow.createUnitButton(Unit unit)
Create a new unit button in toolbar. |
void |
UnitToolBar.createUnitButton(Unit unit)
Create a new unit button in the toolbar. |
void |
MainWindow.disposeUnitButton(Unit unit)
Disposes a unit button in toolbar. |
void |
UnitToolBar.disposeUnitButton(Unit unit)
Disposes a unit button in toolbar. |
void |
MainDesktopPane.disposeUnitWindow(Unit unit)
Disposes a unit window and button. |
UnitWindow |
MainDesktopPane.findUnitWindow(Unit unit)
Finds an existing unit window for a unit. |
void |
MainDesktopPane.openUnitWindow(Unit unit,
boolean initialWindow)
Creates and opens a window for a unit if it isn't already in existance and open. |
Constructors in org.mars_sim.msp.ui.standard with parameters of type Unit | |
---|---|
UnitButton(Unit unit)
Constructor |
Uses of Unit in org.mars_sim.msp.ui.standard.tool.map |
---|
Methods in org.mars_sim.msp.ui.standard.tool.map with parameters of type Unit | |
---|---|
protected void |
UnitLabelMapLayer.displayUnit(Unit unit,
Coordinates mapCenter,
java.lang.String mapType,
java.awt.Graphics g)
Displays a unit on the map. |
protected void |
UnitIconMapLayer.displayUnit(Unit unit,
Coordinates mapCenter,
java.lang.String mapType,
java.awt.Graphics g)
Displays a unit on the map. |
Uses of Unit in org.mars_sim.msp.ui.standard.tool.monitor |
---|
Methods in org.mars_sim.msp.ui.standard.tool.monitor that return Unit | |
---|---|
protected Unit |
UnitTableModel.getUnit(int index)
Get the unit at the specified row. |
Methods in org.mars_sim.msp.ui.standard.tool.monitor with parameters of type Unit | |
---|---|
protected void |
VehicleTableModel.addUnit(Unit newUnit)
Add a unit to the model. |
protected void |
UnitTableModel.addUnit(Unit newUnit)
Add a unit to the model. |
protected void |
SettlementTableModel.addUnit(Unit newUnit)
Add a unit to the model. |
protected boolean |
UnitTableModel.containsUnit(Unit unit)
Checks if unit is in table model already. |
protected int |
UnitTableModel.getUnitIndex(Unit unit)
Gets the index of the row a given unit is at. |
protected void |
VehicleTableModel.removeUnit(Unit oldUnit)
Remove a unit to the model. |
protected void |
UnitTableModel.removeUnit(Unit oldUnit)
Remove a unit to the model. |
protected void |
SettlementTableModel.removeUnit(Unit oldUnit)
Remove a unit from the model. |
Method parameters in org.mars_sim.msp.ui.standard.tool.monitor with type arguments of type Unit | |
---|---|
protected void |
UnitTableModel.addAll(java.util.Collection<Unit> newUnits)
Adds a collection of units to the model. |
Uses of Unit in org.mars_sim.msp.ui.standard.tool.navigator |
---|
Methods in org.mars_sim.msp.ui.standard.tool.navigator with parameters of type Unit | |
---|---|
void |
NavigatorWindow.openUnitWindow(Unit unit)
Opens a unit window on the desktop. |
Uses of Unit in org.mars_sim.msp.ui.standard.unit_display_info |
---|
Methods in org.mars_sim.msp.ui.standard.unit_display_info with parameters of type Unit | |
---|---|
java.lang.String |
RoverDisplayInfoBean.getSound(Unit unit)
|
java.lang.String |
LUVDisplayInfoBean.getSound(Unit unit)
Gets a sound appropriate for this unit. |
java.lang.String |
UnitDisplayInfo.getSound(Unit unit)
Gets a sound appropriate for this unit. |
javax.swing.Icon |
UnitDisplayInfo.getSurfMapIcon(Unit unit)
Gets display icon for the surface navigator map. |
javax.swing.Icon |
UnitDisplayInfo.getTopoMapIcon(Unit unit)
Gets display icon for topo navigator map. |
static UnitDisplayInfo |
UnitDisplayInfoFactory.getUnitDisplayInfo(Unit unit)
Gets a display information about a given unit. |
boolean |
LUVDisplayInfoBean.isGlobeDisplayed(Unit unit)
|
boolean |
UnitDisplayInfo.isGlobeDisplayed(Unit unit)
Checks if the unit is to be displayed on the navigator tool globe. |
boolean |
UnitDisplayInfo.isMapBlink(Unit unit)
Checks if the map icon should blink on and off. |
boolean |
LUVDisplayInfoBean.isMapDisplayed(Unit unit)
|
boolean |
UnitDisplayInfo.isMapDisplayed(Unit unit)
Checks if unit is to be displayed on the navigator tool map. |
Uses of Unit in org.mars_sim.msp.ui.standard.unit_window |
---|
Fields in org.mars_sim.msp.ui.standard.unit_window declared as Unit | |
---|---|
protected Unit |
TabPanel.unit
|
protected Unit |
UnitWindow.unit
|
Methods in org.mars_sim.msp.ui.standard.unit_window that return Unit | |
---|---|
Unit |
TabPanel.getUnit()
Gets the unit. |
Unit |
UnitWindow.getUnit()
Gets the unit for this window. |
Methods in org.mars_sim.msp.ui.standard.unit_window with parameters of type Unit | |
---|---|
static UnitWindow |
UnitWindowFactory.getUnitWindow(Unit unit,
MainDesktopPane desktop)
Gets a new unit window for a given unit. |
Constructors in org.mars_sim.msp.ui.standard.unit_window with parameters of type Unit | |
---|---|
InventoryTabPanel(Unit unit,
MainDesktopPane desktop)
Constructor |
|
LocationTabPanel(Unit unit,
MainDesktopPane desktop)
Constructor |
|
MaintenanceTabPanel(Unit unit,
MainDesktopPane desktop)
Constructor |
|
TabPanel(java.lang.String tabTitle,
javax.swing.Icon tabIcon,
java.lang.String tabToolTip,
Unit unit,
MainDesktopPane desktop)
Constructor |
|
UnitWindow(MainDesktopPane desktop,
Unit unit,
boolean displayDescription)
Constructor |
Uses of Unit in org.mars_sim.msp.ui.standard.unit_window.person |
---|
Constructors in org.mars_sim.msp.ui.standard.unit_window.person with parameters of type Unit | |
---|---|
ActivityTabPanel(Unit unit,
MainDesktopPane desktop)
Constructor |
|
DeathTabPanel(Unit unit,
MainDesktopPane desktop)
Constructor |
|
GeneralTabPanel(Unit unit,
MainDesktopPane desktop)
Constructor |
|
HealthTabPanel(Unit unit,
MainDesktopPane desktop)
Constructor |
Uses of Unit in org.mars_sim.msp.ui.standard.unit_window.structure |
---|
Constructors in org.mars_sim.msp.ui.standard.unit_window.structure with parameters of type Unit | |
---|---|
AssociatedPeopleTabPanel(Unit unit,
MainDesktopPane desktop)
Constructor |
|
BuildingsTabPanel(Unit unit,
MainDesktopPane desktop)
Constructor |
|
CreditTabPanel(Unit unit,
MainDesktopPane desktop)
Constructor |
|
GoodsTabPanel(Unit unit,
MainDesktopPane desktop)
Constructor |
|
MaintenanceTabPanel(Unit unit,
MainDesktopPane desktop)
Constructor |
|
ManufactureTabPanel(Unit unit,
MainDesktopPane desktop)
Constructor |
|
PopulationTabPanel(Unit unit,
MainDesktopPane desktop)
Constructor |
|
PowerGridTabPanel(Unit unit,
MainDesktopPane desktop)
Constructor |
|
ResourceProcessesTabPanel(Unit unit,
MainDesktopPane desktop)
Constructor |
|
SettlementWindow(MainDesktopPane desktop,
Unit unit)
Constructor |
|
VehicleTabPanel(Unit unit,
MainDesktopPane desktop)
Constructor |
Uses of Unit in org.mars_sim.msp.ui.standard.unit_window.vehicle |
---|
Constructors in org.mars_sim.msp.ui.standard.unit_window.vehicle with parameters of type Unit | |
---|---|
LaboratoryTabPanel(Unit unit,
MainDesktopPane desktop)
Constructor |
|
NavigationTabPanel(Unit unit,
MainDesktopPane desktop)
Constructor |
|
TowTabPanel(Unit unit,
MainDesktopPane desktop)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |