|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.jimmc.spelsim.Material
A description of a material.
Constructor Summary | |
Material()
Create a material. |
Method Summary | |
double |
getDensity()
Get the density of the cable. |
static Material |
getMaterial(java.lang.String name)
Get a material with preset values. |
static java.lang.String[] |
getMaterialNames()
Get the list of known material names. |
double |
getStrength()
Get the strength of the cable. |
void |
setDensity(double density)
Set the density of the material. |
void |
setStrength(double strength)
Set the strength of the material. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Material()
Method Detail |
public static Material getMaterial(java.lang.String name)
public static java.lang.String[] getMaterialNames()
public void setDensity(double density)
density
- The density of the material in kg/m^3.public double getDensity()
public void setStrength(double strength)
strength
- The strength of the material in Pascals.public double getStrength()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |