public class DistribModelBuilder
extends java.lang.Object
Constructor | Description |
---|---|
DistribModelBuilder() |
Modifier and Type | Method | Description |
---|---|---|
static void |
createDistribution(FunctionDefinition f,
java.lang.String distribution,
java.lang.String[] inputTypes,
java.lang.String[] inputs) |
Creates the constructs needed for the given distribution in the distrib package.
|
static void |
createRange(SBase sbase,
java.lang.String lower,
java.lang.String upper) |
Creates the constructs needed for a uncertml Range.
|
static void |
createStatisticsCollection(SBase sbase,
java.lang.String[] inputTypes,
java.lang.String[] inputs,
java.lang.String[] values) |
Creates the constructs needed for a StatisticsCollection.
|
static void |
createStatisticsCollection(SBase sbase,
java.lang.String[] inputTypes,
java.lang.String[] inputs,
java.lang.String[] values,
java.lang.String[] attributeNames,
java.lang.String[] attributeValues) |
Creates the constructs needed for a StatisticsCollection.
|
static void |
main(java.lang.String[] args) |
public static void createDistribution(FunctionDefinition f, java.lang.String distribution, java.lang.String[] inputTypes, java.lang.String[] inputs)
If any DrawFromDistribution
instance was set in the given FunctionDefinition
, it
will be replaced. First we create a new DrawFromDistribution
. Then we create one DistribInput
for each String from the inputs
array. To finish the UncertML XMLNode
is created using the given
distribution name, the inputs and inputTypes.
f
- a functionDefinition where we will add distrib infodistribution
- the name of the UncertML distribution as it will be set in the XML.inputTypes
- the array of input types, used to create the XML child element of the UncertML distribution.inputs
- the array of inputs, used to create the DistribInput
id and the 'varId' attribute value
for the 'var' UncertML elements.public static void createRange(SBase sbase, java.lang.String lower, java.lang.String upper)
If any Uncertainty
instance was set in the given SBase
, it
will be replaced.
sbase
- an SBase where we will add uncertainty informationlower
- the lower value of the Rangeupper
- the upper value of the Rangepublic static void createStatisticsCollection(SBase sbase, java.lang.String[] inputTypes, java.lang.String[] inputs, java.lang.String[] values)
If any Uncertainty
instance was set in the given SBase
, it
will be replaced.
sbase
- an SBase where we will add uncertainty informationinputTypes
- the array of input types, used to create the XML child element of the UncertML StatisticsCollection.inputs
- the array of inputs, used to create the child element of the value elementvalues
- the array of statistics valuespublic static void createStatisticsCollection(SBase sbase, java.lang.String[] inputTypes, java.lang.String[] inputs, java.lang.String[] values, java.lang.String[] attributeNames, java.lang.String[] attributeValues)
If any Uncertainty
instance was set in the given SBase
, it
will be replaced.
sbase
- an SBase where we will add uncertainty informationinputTypes
- the array of input types, used to create the XML child element of the UncertML StatisticsCollection.inputs
- the array of inputs, used to create the child element of the value elementvalues
- the array of statistics valuesattributeNames
- the array of attributes, one per inputs.attributeValues
- the array of attribute values, one per inputs.public static void main(java.lang.String[] args) throws SBMLException, javax.xml.stream.XMLStreamException
args
- SBMLException
javax.xml.stream.XMLStreamException