fr.cnes.sirius.validate.jqnum
Class JQNUMTools

java.lang.Object
  extended by fr.cnes.sirius.validate.jqnum.JQNUMTools

public class JQNUMTools
extends Object

JQNUM tools

Since:
1.1
Version:
$Id: JQNUMTools.java 8813 2013-05-17 13:56:27Z ClaudeD $
Author:
ClaudeD
Concurrency :
thread-hostile

Nested Class Summary
static class JQNUMTools.Rule
          List of JQNUM rules
static class JQNUMTools.TypeStrategy
          List of type strategies
 
Constructor Summary
JQNUMTools()
          Constructor JQNUMTools for tested main
JQNUMTools(String name)
          Constructor for JQNUM main
 
Method Summary
 void addFilter(String filter)
          addFilter
 void addJQNUMRuleValue(JQNUMTools.TypeStrategy type, String label, double value)
          addJQNUMRuleValue
 void addJQNUMRuleValue(String label, double value)
          addJQNUMRuleValue
 void addSystemFilter(String filter)
          add a system filter to JQNUM
 boolean deleteJQNUMReportFiles()
          Deletes the report file directory.
 void endRun()
          endRun Making results file at the end of run
 String getJQNUMProperty()
          getJQNUMProperty "rule"
 String getJQNUMProperty(String key)
          getJQNUMProperty
 void makeJQNUMReport()
          makeJQNUMReport make the report file
 void runEXTENDEDPRECISION(int nb)
          runEXTENDEDPRECISION
 void runFIXEDPRECISION(int nb)
          runFIXEDPRECISION.
 void runNOCHANGE()
          runNOCHANGE.
 void runSTOCHASTIC()
          runSTOCHASTIC
 void runSTRICTMATH()
          runSTRICTMATH.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JQNUMTools

public JQNUMTools(String name)
           throws IOException,
                  jqnum.core.JqnumException
Constructor for JQNUM main

Parameters:
name - name of tested main
Throws:
IOException - e
jqnum.core.JqnumException - e

JQNUMTools

public JQNUMTools()
Constructor JQNUMTools for tested main

Method Detail

getJQNUMProperty

public final String getJQNUMProperty()
                              throws IOException
getJQNUMProperty "rule"

Returns:
String
Throws:
IOException - e

getJQNUMProperty

public final String getJQNUMProperty(String key)
                              throws IOException
getJQNUMProperty

Parameters:
key - property key
Returns:
String
Throws:
IOException - e

runNOCHANGE

public final void runNOCHANGE()
runNOCHANGE.


runSTRICTMATH

public final void runSTRICTMATH()
runSTRICTMATH.


runFIXEDPRECISION

public final void runFIXEDPRECISION(int nb)
runFIXEDPRECISION.

Parameters:
nb - number of significant decimal digit representation

runEXTENDEDPRECISION

public final void runEXTENDEDPRECISION(int nb)
runEXTENDEDPRECISION

Parameters:
nb - number of bits to round

runSTOCHASTIC

public final void runSTOCHASTIC()
runSTOCHASTIC


addFilter

public final void addFilter(String filter)
addFilter

Parameters:
filter - add a filter

addSystemFilter

public final void addSystemFilter(String filter)
add a system filter to JQNUM

Parameters:
filter - the system filter to add. Ex : "javax/*/*/*/*" .

endRun

public final void endRun()
                  throws IOException
endRun Making results file at the end of run

Throws:
IOException - e

makeJQNUMReport

public final void makeJQNUMReport()
                           throws IOException
makeJQNUMReport make the report file

Throws:
IOException - e

deleteJQNUMReportFiles

public final boolean deleteJQNUMReportFiles()
Deletes the report file directory. Warning - no confirmation asked!

Returns:
true if the deletion worked.

addJQNUMRuleValue

public final void addJQNUMRuleValue(String label,
                                    double value)
addJQNUMRuleValue

Parameters:
label - Name of data
value - Value of data

addJQNUMRuleValue

public final void addJQNUMRuleValue(JQNUMTools.TypeStrategy type,
                                    String label,
                                    double value)
addJQNUMRuleValue

Parameters:
type - Type of test strategy
label - Name of data
value - Value of data


Copyright © 2016 CNES. All Rights Reserved.