com.sfm.ap210.jsdai.thermal
Class ThermalMaterial

java.lang.Object
  extended by com.sfm.ap210.jsdai.thermal.ThermalMaterial

public class ThermalMaterial
extends java.lang.Object

Illustrates a thermal material representation as a name and a listing of properties describing the physical characteristics of the material.


Field Summary
protected  java.lang.String name
           
protected  java.util.List<Param> properties
           
 
Constructor Summary
ThermalMaterial(java.lang.String name)
          Create a new material with the given name and no physical characteristics
 
Method Summary
 java.lang.String getName()
          Get the name of the material
 java.util.Set<java.lang.String> getProperties()
          Get all characteristics of the material
 Param getProperty(java.lang.String name)
          Find the property with the given name defined on the material
 void removeProperty(java.lang.String name)
          Remove the property with the given name from this material
 void setName(java.lang.String name)
          Set the material's name
 void setProperty(Param property)
          Attach the given characteristic to the material, if this characteristic already exists, it is overwritten
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

properties

protected java.util.List<Param> properties
Constructor Detail

ThermalMaterial

public ThermalMaterial(java.lang.String name)
Create a new material with the given name and no physical characteristics

Parameters:
name -
Method Detail

getName

public java.lang.String getName()
Get the name of the material

Returns:

setName

public void setName(java.lang.String name)
Set the material's name

Parameters:
name -

getProperty

public Param getProperty(java.lang.String name)
Find the property with the given name defined on the material

Parameters:
name -
Returns:

setProperty

public void setProperty(Param property)
Attach the given characteristic to the material, if this characteristic already exists, it is overwritten

Parameters:
property -

getProperties

public java.util.Set<java.lang.String> getProperties()
Get all characteristics of the material

Returns:

removeProperty

public void removeProperty(java.lang.String name)
Remove the property with the given name from this material

Parameters:
name - the property to remove

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object