net.jimmc.spelsim
Class Material

java.lang.Object
  |
  +--net.jimmc.spelsim.Material

public class Material
extends java.lang.Object

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

Material

public Material()
Create a material.

Method Detail

getMaterial

public static Material getMaterial(java.lang.String name)
Get a material with preset values.


getMaterialNames

public static java.lang.String[] getMaterialNames()
Get the list of known material names.


setDensity

public void setDensity(double density)
Set the density of the material.

Parameters:
density - The density of the material in kg/m^3.

getDensity

public double getDensity()
Get the density of the cable.

Returns:
The density of the cable in kg/m^3.

setStrength

public void setStrength(double strength)
Set the strength of the material.

Parameters:
strength - The strength of the material in Pascals.

getStrength

public double getStrength()
Get the strength of the cable.

Returns:
The strength of the cable in Pascals.