nl.tudelft.simulation.xml.jstats
Class DistributionParser

java.lang.Object
  extended by nl.tudelft.simulation.xml.jstats.DistributionParser

public final class DistributionParser
extends Object


(c) copyright 2002-2005-2004 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser General Public License (LGPL) , no warranty.

Version:
Jun 25, 2004
Author:
Alexander Verbraeck

Field Summary
static URL DISTRIBUTIONFILE_SCHEMA
          the default schema file
 
Method Summary
static DistContinuous parseContinuousDistribution(org.jdom.Element element, SimulatorInterface simulator)
          parses a xml-element representing a distribution function
static DistDiscrete parseDiscreteDistribution(org.jdom.Element element, SimulatorInterface simulator)
          parses a xml-element representing a distribution function
static Dist parseDistribution(org.jdom.Element element, SimulatorInterface simulator)
          parses a xml-element representing a distribution function
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DISTRIBUTIONFILE_SCHEMA

public static final URL DISTRIBUTIONFILE_SCHEMA
the default schema file

Method Detail

parseDistribution

public static Dist parseDistribution(org.jdom.Element element,
                                     SimulatorInterface simulator)
                              throws IOException
parses a xml-element representing a distribution function

Parameters:
element - The j-dom element
simulator - the simulator to use
Returns:
the distribution function
Throws:
IOException - on failure

parseDiscreteDistribution

public static DistDiscrete parseDiscreteDistribution(org.jdom.Element element,
                                                     SimulatorInterface simulator)
                                              throws IOException
parses a xml-element representing a distribution function

Parameters:
element - The j-dom element
simulator - the simulator to use
Returns:
the distribution function
Throws:
IOException - on failure

parseContinuousDistribution

public static DistContinuous parseContinuousDistribution(org.jdom.Element element,
                                                         SimulatorInterface simulator)
                                                  throws IOException
parses a xml-element representing a distribution function

Parameters:
element - The j-dom element
simulator - the simulator to use
Returns:
the distribution function
Throws:
IOException - on failure


Copyright © 2002-2010 Delft University of Technology, the Netherlands. All Rights Reserved.