|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mars_sim.msp.simulation.resource.ItemResource
org.mars_sim.msp.simulation.resource.Part
public class Part
The Part class represents a type of unit resource that is used for maintenance and repairs.
| Constructor Summary | |
|---|---|
Part(java.lang.String name,
double mass)
Constructor. |
|
| Method Summary | |
|---|---|
int |
getMaintenanceMaximumNumber(java.lang.String entityName)
Gets the maximum number of this part needed by a maintenance entity. |
int |
getMaintenanceProbability(java.lang.String entityName)
Gets the percentage probability of a part being needed by an maintenance entity. |
static java.util.Set<Part> |
getParts()
Gets a set of all parts. |
boolean |
hasMaintenanceEntity(java.lang.String entityName)
Checks if the part has a maintenance entity of a given name. |
| Methods inherited from class org.mars_sim.msp.simulation.resource.ItemResource |
|---|
equals, findItemResource, getItemResources, getMassPerItem, getName, getTestResourceHammer, getTestResourcePipeWrench, getTestResourceSocketWrench, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Part(java.lang.String name,
double mass)
name - the name of the part.mass - the mass of the part (kg)| Method Detail |
|---|
public boolean hasMaintenanceEntity(java.lang.String entityName)
entityName - the name of the entity.
public int getMaintenanceProbability(java.lang.String entityName)
entityName - the name of the entity.
public int getMaintenanceMaximumNumber(java.lang.String entityName)
entityName - the name of the entity.
public static final java.util.Set<Part> getParts()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||