fr.reseaumexico.model.parser
Class ExperimentDesignParser

java.lang.Object
  extended by java.io.Reader
      extended by java.io.InputStreamReader
          extended by java.io.FileReader
              extended by fr.reseaumexico.model.parser.XmlParser<M>
                  extended by fr.reseaumexico.model.parser.MexicoXmlParser<ExperimentDesign>
                      extended by fr.reseaumexico.model.parser.ExperimentDesignParser
All Implemented Interfaces:
MexicoXmlConstant, Closeable, Readable

public class ExperimentDesignParser
extends MexicoXmlParser<ExperimentDesign>
implements MexicoXmlConstant

Parser for experiment design xml files, build a ExperimentDesign model.

Since:
0.1
Author:
sletellier

Field Summary
protected  Map<String,Factor> factors
           
 
Fields inherited from class java.io.Reader
lock
 
Fields inherited from interface fr.reseaumexico.model.MexicoXmlConstant
DISTRIBUTION_PARAMETER_NAME, DISTRIBUTION_PARAMETER_VALUE, DISTRIBUTION_PARAMETER_VALUE_TYPE, DOMAIN, DOMAIN_DISTRIBUTION_NAME, DOMAIN_DISTRIBUTION_PARAMETER, DOMAIN_LEVEL, DOMAIN_NAME, DOMAIN_NOMINAL_VALUE, DOMAIN_VALUE_TYPE, EXPERIMENT_DESIGN, EXPERIMENT_DESIGN_AUTHOR, EXPERIMENT_DESIGN_DATE, EXPERIMENT_DESIGN_DESCRIPTION, EXPERIMENT_DESIGN_ID, EXPERIMENT_DESIGN_LICENCE, FACTOR, FACTOR_DESCRIPTION, FACTOR_ID, FACTOR_NAME, FACTOR_UNIT, FACTORS, FEATURE, FEATURE_NAME, FEATURE_VALUE, FEATURE_VALUE_TYPE, INPUT_DESIGN, INPUT_DESIGN_DATE, LEVEL_VALUE, LEVEL_WEIGHT, SCENARIO, SCENARIO_FACTOR_VALUES, SCENARIO_NAME, SCENARIO_ORDER_NUMBER
 
Constructor Summary
ExperimentDesignParser(File file)
           
 
Method Summary
 Map<String,Factor> getFactors()
           
protected  Domain parseDomain(org.xmlpull.v1.XmlPullParser parser)
           
protected  void parseExperimentDesignMeta(org.xmlpull.v1.XmlPullParser parser, ExperimentDesign model)
           
protected  Factor parseFactor(org.xmlpull.v1.XmlPullParser parser)
           
protected  void parseFactors(org.xmlpull.v1.XmlPullParser parser, ExperimentDesign model)
           
protected  Feature parseFeature(org.xmlpull.v1.XmlPullParser parser)
           
protected  ExperimentDesign parseModel(org.xmlpull.v1.XmlPullParser parser)
           
 
Methods inherited from class fr.reseaumexico.model.parser.MexicoXmlParser
getTypedValue, parseDate
 
Methods inherited from class fr.reseaumexico.model.parser.XmlParser
getModel, parserEqual
 
Methods inherited from class java.io.InputStreamReader
close, getEncoding, read, read, ready
 
Methods inherited from class java.io.Reader
mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factors

protected Map<String,Factor> factors
Constructor Detail

ExperimentDesignParser

public ExperimentDesignParser(File file)
                       throws FileNotFoundException
Throws:
FileNotFoundException
Method Detail

parseModel

protected ExperimentDesign parseModel(org.xmlpull.v1.XmlPullParser parser)
                               throws IOException,
                                      org.xmlpull.v1.XmlPullParserException,
                                      ParseException
Specified by:
parseModel in class XmlParser<ExperimentDesign>
Throws:
IOException
org.xmlpull.v1.XmlPullParserException
ParseException

parseExperimentDesignMeta

protected void parseExperimentDesignMeta(org.xmlpull.v1.XmlPullParser parser,
                                         ExperimentDesign model)
                                  throws IOException,
                                         org.xmlpull.v1.XmlPullParserException,
                                         ParseException
Throws:
IOException
org.xmlpull.v1.XmlPullParserException
ParseException

parseFactors

protected void parseFactors(org.xmlpull.v1.XmlPullParser parser,
                            ExperimentDesign model)
                     throws IOException,
                            org.xmlpull.v1.XmlPullParserException
Throws:
IOException
org.xmlpull.v1.XmlPullParserException

parseFactor

protected Factor parseFactor(org.xmlpull.v1.XmlPullParser parser)
                      throws IOException,
                             org.xmlpull.v1.XmlPullParserException
Throws:
IOException
org.xmlpull.v1.XmlPullParserException

parseDomain

protected Domain parseDomain(org.xmlpull.v1.XmlPullParser parser)
                      throws org.xmlpull.v1.XmlPullParserException,
                             IOException
Throws:
org.xmlpull.v1.XmlPullParserException
IOException

parseFeature

protected Feature parseFeature(org.xmlpull.v1.XmlPullParser parser)

getFactors

public Map<String,Factor> getFactors()


Copyright © 2011-2012 Code Lutin. All Rights Reserved.