org.mars_sim.msp.core.resource
Class AmountResourceConfig

java.lang.Object
  extended by org.mars_sim.msp.core.resource.AmountResourceConfig
All Implemented Interfaces:
Serializable

public class AmountResourceConfig
extends Object
implements Serializable

Provides configuration information about amount resources. Uses a DOM document to get the information.

See Also:
Serialized Form

Constructor Summary
AmountResourceConfig(org.jdom.Document amountResourceDoc)
          Constructor
 
Method Summary
 Set<AmountResource> getAmountResources()
          Gets a set of all amount resources.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AmountResourceConfig

public AmountResourceConfig(org.jdom.Document amountResourceDoc)
Constructor

Parameters:
amountResourceDoc - the amount resource XML document.
Throws:
Exception - if error reading XML document
Method Detail

getAmountResources

public Set<AmountResource> getAmountResources()
Gets a set of all amount resources.

Returns:
set of resources.


Copyright © 2009-2013. All Rights Reserved.