Class SBMLHelper
java.lang.Object
de.ipk_gatersleben.ag_nw.graffiti.plugins.ios.sbml.SBMLHelper
public class SBMLHelper extends Object
-
Field Summary
Fields Modifier and Type Field Description static PositionGridGenerator_pggstatic SBML_SBase_ReaderattReaderstatic SBML_SBase_WriterattWriterProvides necessary methodsstatic StringSBML_LAYOUT_EXTENSION_NAMESPACE -
Constructor Summary
Constructors Constructor Description SBMLHelper() -
Method Summary
Modifier and Type Method Description static voidaddAlgebraicRule(Graph g, String function)static voidaddAssignmentRuleFunction(Graph g, String variable, String function)static voidaddAssignmentRuleVariable(Graph g, String variable)static voidaddCompartmentConstant(Graph g, String id, boolean constant)static voidaddCompartmentName(Graph g, String id, String name)static voidaddCompartmentSize(Graph g, String id, Double value)static voidaddCompartmentSpatialDimensions(Graph g, String id, Double value)static voidaddCompartmentUnits(Graph g, String id, String units)static voidaddConstraintConstraint(Graph g, String formula)static voidaddConstraintMessage(Graph g, String formula, String message)static voidaddDelayToEvent(Graph g, String id, String function)static voidaddDelayToEvent(Graph g, String id, org.sbml.jsbml.Delay delay)static voidaddEventAssignmentToEvent(Graph g, String id, String variable, String function)static voidaddEventAssignmentToEvent(Graph g, String id, org.sbml.jsbml.EventAssignment eventAssignment)static voidaddEventName(Graph g, String id, String name)static voidaddEventUseValuesFromTriggerTime(Graph g, String id, boolean useValuesFromTriggerTime)static voidaddFunctionDefinitionFunction(Graph g, String id, String function)static voidaddFunctionDefinitionName(Graph g, String id, String name)static voidaddInitialAssignmentFunction(Graph g, String symbol, String function)static voidaddKineticLaw(Node reactionNode, String function)static voidaddKineticLaw(Node reactionNode, org.sbml.jsbml.KineticLaw kineticLaw)static voidaddLocalParameter(Node node, String id)static voidaddLocalParameter(Node node, org.sbml.jsbml.LocalParameter lp)static voidaddLocalParameterName(Node node, String lpID, String name)static voidaddLocalParameterUnits(Node node, String lpID, String units)static voidaddLocalParameterValue(Node node, String lpID, Double value)static EdgeaddModifier(Node node, String speciesID)static EdgeaddModifier(Node node, org.sbml.jsbml.ModifierSpeciesReference ref)static voidaddParameterConstant(Graph g, String id, boolean constant)static voidaddParameterName(Graph g, String id, String name)static voidaddParameterUnits(Graph g, String id, String units)static voidaddParameterValue(Graph g, String id, Double value)static voidaddPriorityToEvent(Graph g, String id, String function)static voidaddPriorityToEvent(Graph g, String id, org.sbml.jsbml.Priority priority)static EdgeaddProduct(Node node, String speciesID)static EdgeaddProduct(Node node, org.sbml.jsbml.SpeciesReference ref)static voidaddRateRuleFunction(Graph g, String variable, String function)static voidaddRateRuleVariable(Graph g, String variable)static EdgeaddReactant(Node node, String speciesID)static EdgeaddReactant(Node node, org.sbml.jsbml.SpeciesReference ref)static voidaddSpeciesBoundaryConsition(Node speciesNode, Boolean boundaryCondition)Sets the attribute boundary condition of a species nodestatic voidaddSpeciesCompartment(Node speciesNode, String compartment)Sets the compartment of a nodestatic voidaddSpeciesConstant(Node speciesNode, Boolean constant)Sets the attribute constant of a species nodestatic voidaddSpeciesConversionFactor(Node speciesNode, String conversionFactor)Sets the attribute conversion factor of a species nodestatic voidaddSpeciesHasOnlySubstanceUnits(Node speciesNode, Boolean hasOnlySubstanceUnits)Sets the attribute hasOnlySubstanceUnits of a species nodestatic voidaddSpeciesID(Node speciesNode, String id)Sets the id of a species nodestatic voidaddSpeciesInitialAmount(Node speciesNode, Double initialAmount)Sets the initial amount of a nodestatic voidaddSpeciesInitialConcentration(Node speciesNode, Double initialConcentration)Sets the initial concentration of a nodestatic voidaddSpeciesName(Node speciesNode, String name)static voidaddSpeciesSubstanceUnits(Node speciesNode, String substanceUnits)Sets the substance units of a species nodestatic voidaddTriggerFunction(Graph g, String eventID, String function)static voidaddTriggerInitialValue(Graph g, String eventID, boolean initialValue)static voidaddTriggerPersistent(Graph g, String eventID, boolean persistent)static voidaddTriggerToEvent(Graph g, String id, boolean initialValue, boolean persistent, String formula)static voidaddTriggerToEvent(Graph g, String id, org.sbml.jsbml.Trigger trigger)static voidaddUnitDefinitionID(Graph g, String oldID, String newID)static voidaddUnitDefinitionName(Graph g, String id, String name)static voidaddUnitToUnitDefinition(Graph g, String id, org.sbml.jsbml.Unit unit)static voidaddUnitToUnitDefinition(Graph g, String id, org.sbml.jsbml.Unit.Kind kind, double exponent, double multiplier, int scale)static intcountFunctionDefinitions(Graph g)Returns the number of function definitions in the graphstatic org.sbml.jsbml.AlgebraicRulecreateAlgebraicRule(Graph g, String formula)static voidcreateAlgebraicRule(Graph g, org.sbml.jsbml.AlgebraicRule ar)static org.sbml.jsbml.AssignmentRulecreateAssignmentRule(Graph g, String variable)static org.sbml.jsbml.AssignmentRulecreateAssignmentRule(Graph g, String variable, String formula)static voidcreateAssignmentRule(Graph g, org.sbml.jsbml.AssignmentRule ar)static org.sbml.jsbml.CompartmentcreateCompartment(Graph g, String id)Creates an compartment in the graph tab with an specific idstatic voidcreateCompartment(Graph g, org.sbml.jsbml.Compartment compartment)static org.sbml.jsbml.ConstraintcreateConstraint(Graph g, String math)static voidcreateConstraint(Graph g, org.sbml.jsbml.Constraint constraint)static org.sbml.jsbml.EventcreateEvent(Graph g, String id)static voidcreateEvent(Graph g, org.sbml.jsbml.Event event)static org.sbml.jsbml.FunctionDefinitioncreateFunctionDefinition(Graph g, String id)static voidcreateFunctionDefinition(Graph g, org.sbml.jsbml.FunctionDefinition fd)static org.sbml.jsbml.InitialAssignmentcreateInitialAssignment(Graph g, String symbol)static voidcreateInitialAssignment(Graph g, org.sbml.jsbml.InitialAssignment ia)static org.sbml.jsbml.ParametercreateParameter(Graph g, String id)static voidcreateParameter(Graph g, org.sbml.jsbml.Parameter parameter)static org.sbml.jsbml.RateRulecreateRateRule(Graph g, String variable)static org.sbml.jsbml.RateRulecreateRateRule(Graph g, String variable, String formula)static voidcreateRateRule(Graph g, org.sbml.jsbml.RateRule rr)static NodecreateReaction(Graph g, String id, String name)static NodecreateReaction(Graph g, org.sbml.jsbml.Reaction reaction)static NodecreateSpecies(Graph g, String id, String name)Creates a new species node and sets its idstatic NodecreateSpecies(Graph g, org.sbml.jsbml.Species species)static org.sbml.jsbml.UnitDefinitioncreateUnitDefinition(Graph g, String id)static voidcreateUnitDefinition(Graph g, org.sbml.jsbml.UnitDefinition ud)static voiddeleteAlgebraicRule(Graph g, String formula)static voiddeleteAlgebraicRuleFunction(Graph g, String function)static voiddeleteAssignmentRule(Graph g, String variable)static voiddeleteAssignmentRuleFunction(Graph g, String variable)static voiddeleteAssignmentRuleVariable(Graph g, String variable)static voiddeleteCompartment(Graph g, String id)static voiddeleteCompartmentConstant(Graph g, String id)static voiddeleteCompartmentID(Graph g, String id)static voiddeleteCompartmentName(Graph g, String id)static voiddeleteCompartmentSize(Graph g, String id)static voiddeleteCompartmentSpatialDimensions(Graph g, String id)static voiddeleteCompartmentUnits(Graph g, String id)static voiddeleteConstant(Edge edge)static voiddeleteConstraint(Graph g, String formula)static voiddeleteConstraintMessage(Graph g, String constraint)static voiddeleteDelayFunction(Graph g, String id)static voiddeleteEvent(Graph g, String id)static voiddeleteEventAssignment(Graph g, String id, String variable)static voiddeleteEventID(Graph g, String id)static voiddeleteEventName(Graph g, String id)static voiddeleteEventUseValuesFromTriggerTime(Graph g, String id)static voiddeleteFunctionDefinition(Graph g, String id)static voiddeleteFunctionDefinitionFunction(Graph g, String id)static voiddeleteFunctionDefinitionID(Graph g, String id)static voiddeleteFunctionDefinitionName(Graph g, String id)static voiddeleteInitialAssignment(Graph g, String symbol)static voiddeleteInitialAssignmentFunction(Graph g, String symbol)static voiddeleteInitialAssignmentSymbol(Graph g, String symbol)static voiddeleteKineticLawFunction(Node node)static voiddeleteLocalParameter(Node node, String lpID)static voiddeleteLocalParameterID(Node node, String lpID)static voiddeleteLocalParameterName(Node node, String lpID)static voiddeleteLocalParameterUnits(Node node, String lpID)static voiddeleteLocalParameterValue(Node node, String lpID)static voiddeleteModifier(Edge edge)static voiddeleteParameter(Graph g, String id)static voiddeleteParameterConstant(Graph g, String id)static voiddeleteParameterID(Graph g, String id)static voiddeleteParameterName(Graph g, String id)static voiddeleteParameterUnits(Graph g, String id)static voiddeleteParameterValue(Graph g, String id)static voiddeletePriority(Graph g, String id)static voiddeletePriorityFunction(Graph g, String id)static voiddeleteProduct(Edge edge)static voiddeleteRateRule(Graph g, String variable)static voiddeleteRateRuleFunction(Graph g, String variable)static voiddeleteRateRuleVariable(Graph g, String variable)static voiddeleteReactant(Edge edge)static voiddeleteReactionCompartment(Node reactionNode)static voiddeleteReactionFast(Node reactionNode)static voiddeleteReactionID(Node reactionNode)static voiddeleteReactionName(Node reactionNode)static voiddeleteReactionReversible(Node reactionNode)static voiddeleteReactionSpecies(Edge edge)static voiddeleteReactionSpeciesID(Edge edge)static voiddeleteReactionSpeciesName(Edge edge)static voiddeleteSpecies(Node node)static voiddeleteSpeciesBoundaryCondition(Node node)static voiddeleteSpeciesCompartment(Node node)static voiddeleteSpeciesConstant(Node node)static voiddeleteSpeciesConversionFactor(Node node)static voiddeleteSpeciesHasOnlySubstanceUnits(Node node)static voiddeleteSpeciesID(Node node)static voiddeleteSpeciesInitialAmount(Node node)static voiddeleteSpeciesInitialConcentration(Node node)static voiddeleteSpeciesName(Node node)static voiddeleteSpeciesSubstanceUnits(Node node)static voiddeleteStoichiometry(Edge edge)static voiddeleteTriggeInitialValue(Graph g, String id)static voiddeleteTrigger(Graph g, String id)static voiddeleteTriggerFunction(Graph g, String id)static voiddeleteTriggerPersistent(Graph g, String id)static voiddeleteUnitDefinitionID(Graph g, String id)static voiddeleteUnitDefinitionName(Graph g, String id)static List<org.sbml.jsbml.AssignmentRule>getAllAssignmentRules(Graph g)Returns a list of assignment rules with distinct headlinesstatic List<org.sbml.jsbml.Compartment>getAllCompartments(Graph g)Returns a list of compartments with distinct headlinesstatic List<org.sbml.jsbml.Constraint>getAllConstraints(Graph g)Returns a list of constraint with distinct headlinesstatic List<org.sbml.jsbml.Event>getAllEvent(Graph g)Returns a list of event with distinct headlinesstatic List<org.sbml.jsbml.FunctionDefinition>getAllFunctionDefinitions(Graph g)Returns a list of filled JSBML FunctionDefinition objectsstatic List<org.sbml.jsbml.InitialAssignment>getAllInitialAssignment(Graph g)Returns a list of initial assignment with distinct headlinesstatic List<org.sbml.jsbml.Parameter>getAllParameters(Graph g)Returns a list of parameter with distinct headlinesstatic List<org.sbml.jsbml.UnitDefinition>getAllUnitDefinitions(Graph g)Returns a filled list of UnitDefinition objectsstatic ArrayList<String>getAssignmentRuleHeadlines(Graph g)Returns a list of all assignment rule headlines in the graphstatic StringgetKineticLawFunction(Node reactionNode)Returns the function of a kinetic lawstatic StringgetLocalParameterID(Node reactionNode, int localParameterCount)Returns the value of the attribute idstatic StringgetLocalParameterName(Node reactionNode, int localParameterCount)Returns the value of the attribute namestatic StringgetLocalParameterUnits(Node reactionNode, int localParameterCount)Returns the value of the attribute unitsstatic DoublegetLocalParameterValue(Node reactionNode, int localParameterCount)Returns the value of the attribute valuestatic List<Edge>getModifier(Node node)Returns the modifier edgesstatic List<Edge>getProducts(Node node)The edges with the simple species references will be returnedstatic List<Edge>getReactants(Node node)The edges with the simple species references will be returnedstatic org.sbml.jsbml.ReactiongetReaction(Node node)Returns a JSBML Reaction object belonging to a reaction nodestatic StringgetReactionCompartment(Node reactionNode)Returns the compartment of a reactionstatic BooleangetReactionConstant(Edge reactionEdge)Returns the value of the attribute constantstatic BooleangetReactionFast(Node reactionNode)Returns the attribute fast of a reactionstatic StringgetReactionID(Node reactionNode)Returns the id of a reactionstatic StringgetReactionName(Node reactionNode)Returns the name of a reactionstatic NodegetReactionNode(Graph g, String id)Returns the reaction node with a distinct idstatic List<Node>getReactionNodes(Graph g)Returns all reaction nodes of the graphstatic BooleangetReactionReversible(Node reactionNode)Returns the attribute reversible of a reactionstatic StringgetReactionSpecies(Edge reactionEdge)Returns the speciesstatic StringgetReactionSpeciesID(Edge reactionEdge)Return the species idstatic StringgetReactionSpeciesName(Edge reactionEdge)Returns the species namestatic org.sbml.jsbml.SpeciesgetSpecies(Node node)Returns a JSBML Species object belonging to a species nodestatic BooleangetSpeciesBoundaryCondition(Node speciesNode)Returns the boolean value boundaryCondition of the speciesstatic StringgetSpeciesCompartment(Node speciesNode)Returns the compartment id of a speciesstatic BooleangetSpeciesConstant(Node speciesNode)Returns the boolean value constant of the speciesstatic StringgetSpeciesConversionFactor(Node speciesNode)Returns the conversion factor units of a speciesstatic BooleangetSpeciesHasOnlySubstanceUnits(Node speciesNode)Returns the boolean value hasOnlySubstanceUnits of the speciesstatic StringgetSpeciesID(Node speciesNode)Returns the id of the speciesstatic DoublegetSpeciesInitialAmount(Node speciesNode)Returns the initial amount of a speciesstatic DoublegetSpeciesInitialConcentration(Node speciesNode)Returns the initial concentration of a speciesstatic StringgetSpeciesName(Node speciesNode)Returns the name of the speciesstatic NodegetSpeciesNode(Graph g, String id)Returns the species node with a distinct idstatic List<Node>getSpeciesNodes(Graph g)Returns all species nodes of the graphstatic StringgetSpeciesSubstanceUnits(Node speciesNode)Returns the substance units of a speciesstatic StringgetStoichiometry(Edge reactionEdge)Returns the value of the attribute stoichiometrystatic EdgeinitProductEdge(Edge e)static EdgeinitReactantEdge(Edge e)static NodeinitReactionNode(Node n)static NodeinitSpeciesNode(Node n)This method converts a node into a species nodestatic BooleanisKineticLawFunction(Node reactionNode)Indicates if the function of a kinetic law is setstatic BooleanisLocalParameterID(Node reactionNode, int localParameterCount)Indicates if the attribute id is setstatic BooleanisLocalParameterName(Node reactionNode, int localParameterCount)Indicates if the attribute name is setstatic BooleanisLocalParameterUnits(Node reactionNode, int localParameterCount)Indicates if the attribute units is setstatic BooleanisLocalParameterValue(Node reactionNode, int localParameterCount)Indicates if the attribute value is setstatic BooleanisReactionCompartment(Node reactionNode)Indicates if compartment of a reaction is setstatic BooleanisReactionConstant(Edge reactionEdge)Indicates if there is set a value for constantstatic BooleanisReactionFast(Node reactionNode)Indicates if fast of a reaction is setstatic BooleanisReactionID(Node reactionNode)Indicates if id of a reaction is setstatic BooleanisReactionName(Node reactionNode)Indicates if name of a reaction is setstatic BooleanisReactionReversible(Node reactionNode)Indicates if reversible of a reaction is setstatic BooleanisReactionSpecies(Edge reactionEdge)Indicates if the species attribute is setstatic BooleanisReactionSpeciesID(Edge reactionEdge)Indicates if the species id attribute is setstatic BooleanisReactionSpeciesName(Edge reactionEdge)Indicates if the species name attribute is setstatic BooleanisReactionStoichiometry(Edge reactionEdge)Indicates if there is set a value for stoichiometrystatic booleanisSetAssignmentRuleFunction(Graph g, String variable)static booleanisSetAssignmentRuleVariable(Graph g, String variable)static booleanisSetCompartmentConstants(Graph g, String id)static booleanisSetCompartmentID(Graph g, String id)static booleanisSetCompartmentName(Graph g, String id)static booleanisSetCompartmentSize(Graph g, String id)static booleanisSetCompartmentSpatialDimensions(Graph g, String id)static booleanisSetCompartmentUnits(Graph g, String id)static booleanisSetConstant(Edge edge)static booleanisSetConstraintMessage(Graph g, String constraint)static booleanisSetDelay(Graph g, String id)static booleanisSetDelayFunction(Graph g, String id)static booleanisSetEventName(Graph g, String id)static booleanisSetEventUseValuesFromTriggerTime(Graph g, String id)static booleanisSetFunctionDefinitionFunction(Graph g, String id)static booleanisSetFunctionDefinitionID(Graph g, String id)static booleanisSetFunctionDefinitionName(Graph g, String id)static booleanisSetInitialAssignmentFunction(Graph g, String symbol)static booleanisSetInitialAssignmentSymbol(Graph g, String symbol)static booleanisSetLayoutID(Graph g, Node node)static booleanisSetLocalParameterName(Node node, String lpID)static booleanisSetLocalParameterUnits(Node node, String lpID)static booleanisSetLocalParameterValue(Node node, String lpID)static booleanisSetParameterConstant(Graph g, String id)static booleanisSetParameterName(Graph g, String id)static booleanisSetParameterUnits(Graph g, String id)static booleanisSetParameterValue(Graph g, String id)static booleanisSetPriority(Graph g, String id)static booleanisSetRateRuleFunction(Graph g, String variable)static booleanisSetRateRuleVariable(Graph g, String variable)static booleanisSetReactionSpecies(Edge edge)static booleanisSetReactionSpeciesID(Edge edge)static booleanisSetReactionSpeciesName(Edge edge)static booleanisSetStoichiometry(Edge edge)static booleanisSetTriggerFunction(Graph g, String id)static booleanisSetTriggerInitialValue(Graph g, String id)static booleanisSetTriggerPersistent(Graph g, String id)static booleanisSetUnitDefinitionID(Graph g, String id)static booleanisSetUnitDefinitionName(Graph g, String id)static BooleanisSpeciesBoundaryCondition(Node speciesNode)Indicates if boundary condition of a species is setstatic BooleanisSpeciesCompartment(Node speciesNode)Indicates if the compartment id of a species is setstatic BooleanisSpeciesConstant(Node speciesNode)Indicates if constant of a species is setstatic BooleanisSpeciesConversionFactor(Node speciesNode)Indicates if conversion factor of a species is setstatic BooleanisSpeciesHasOnlySubstanceUnits(Node speciesNode)Indicates if hasOnlySubstanceUnits of a species is setstatic BooleanisSpeciesID(Node speciesNode)Indicates if the id of a species is setstatic BooleanisSpeciesInitialAmount(Node speciesNode)Indicates if the initial amount of a species is setstatic BooleanisSpeciesInitialConcentration(Node speciesNode)Indicates if the initial concentration of a species is setstatic BooleanisSpeciesName(Node speciesNode)Indicates if the name of a species is setstatic BooleanisSpeciesSubstanceUnits(Node speciesNode)Indicates if substance units of a species is setstatic intlocalParameterCount(Node node)Returns the number of local parameterstatic voidsetReactionCompartment(Node reactionNode, String compartment)Sets the compartment of a nodestatic voidsetReactionConstant(Edge reactionEdge, Boolean constant)Sets a value for the attribute constantstatic voidsetReactionFast(Node reactionNode, Boolean fast)Sets the attribute fast of a nodestatic voidsetReactionID(Node reactionNode, String ID)Sets the attribute id of a nodestatic voidsetReactionLabel(Node reactionNode, String name, String id, PositionGridGenerator pgg)Sets the attribute name of a nodestatic voidsetReactionName(Node reactionNode, String name)static voidsetReactionReversible(Node reactionNode, Boolean reversible)Sets the attribute reversible of a nodestatic voidsetReactionSpecies(Edge reactionEdge, String species)Sets the species of a reactionstatic voidsetReactionSpeciesID(Edge reactionEdge, String ID)The id of the species of an reactionstatic voidsetReactionSpeciesName(Edge reactionEdge, String name)The name of the species of a reactionstatic voidsetSpeciesAttributes(Node sbmlNode, String niceID, Object value)static voidsetStoichiometry(Edge reactionEdge, Double stoichiometry)Sets a value for the attribute stoichiometry
-
Field Details
-
attWriter
Provides necessary methods -
_pgg
-
attReader
-
SBML_LAYOUT_EXTENSION_NAMESPACE
- See Also:
- Constant Field Values
-
-
Constructor Details
-
SBMLHelper
public SBMLHelper()
-
-
Method Details
-
createFunctionDefinition
-
createFunctionDefinition
-
addFunctionDefinitionName
-
addFunctionDefinitionFunction
-
deleteFunctionDefinitionID
-
deleteFunctionDefinitionName
-
deleteFunctionDefinitionFunction
-
deleteFunctionDefinition
-
isSetFunctionDefinitionName
-
isSetFunctionDefinitionID
-
isSetFunctionDefinitionFunction
-
countFunctionDefinitions
Returns the number of function definitions in the graph- Parameters:
g- where the information is read from- Returns:
- number of function definitios
-
getAllFunctionDefinitions
Returns a list of filled JSBML FunctionDefinition objects- Parameters:
g- contains the information- Returns:
- a filled list of function definitions
-
createUnitDefinition
-
createUnitDefinition
-
addUnitToUnitDefinition
-
addUnitToUnitDefinition
-
addUnitDefinitionName
-
addUnitDefinitionID
-
deleteUnitDefinitionID
-
deleteUnitDefinitionName
-
isSetUnitDefinitionName
-
isSetUnitDefinitionID
-
getAllUnitDefinitions
Returns a filled list of UnitDefinition objects- Parameters:
g- the graph where the information can be found- Returns:
- a filled UnitDefinition list
-
createCompartment
Creates an compartment in the graph tab with an specific id- Returns:
- the Compartment object will be returned
-
createCompartment
- Parameters:
compartment-
-
isSetCompartmentName
-
isSetCompartmentID
-
isSetCompartmentSpatialDimensions
-
isSetCompartmentSize
-
isSetCompartmentUnits
-
isSetCompartmentConstants
-
addCompartmentName
-
addCompartmentSpatialDimensions
-
addCompartmentSize
-
addCompartmentUnits
-
addCompartmentConstant
-
deleteCompartmentID
-
deleteCompartmentName
-
deleteCompartmentSpatialDimensions
-
deleteCompartmentSize
-
deleteCompartmentUnits
-
deleteCompartmentConstant
-
deleteCompartment
-
getAllCompartments
Returns a list of compartments with distinct headlines- Parameters:
g- contains the information- Returns:
- a filled list of compartments
-
isSpeciesID
Indicates if the id of a species is set- Parameters:
speciesNode- the node where the information is read from- Returns:
- true if the id is set else false
-
isSpeciesName
Indicates if the name of a species is set- Parameters:
speciesNode- the node where the information is read from- Returns:
- true if the name is set else false
-
isSpeciesCompartment
Indicates if the compartment id of a species is set- Parameters:
node- the node where the information is read from- Returns:
- true if the compartment id is set else false
-
isSpeciesInitialAmount
Indicates if the initial amount of a species is set- Parameters:
speciesNode- the node where the information is read from- Returns:
- true if the initial amount is set else false
-
isSpeciesInitialConcentration
Indicates if the initial concentration of a species is set- Parameters:
speciesNode- the node where the information is read from- Returns:
- true if the initial concentration is set else false
-
isSpeciesSubstanceUnits
Indicates if substance units of a species is set- Parameters:
speciesNode- the node where the information is read from- Returns:
- true if substance units is set else false
-
isSpeciesHasOnlySubstanceUnits
Indicates if hasOnlySubstanceUnits of a species is set- Parameters:
speciesNode- the node where the information is read from- Returns:
- true if hasOnlySubstanceUnits is set else false
-
isSpeciesBoundaryCondition
Indicates if boundary condition of a species is set- Parameters:
speciesNode- the node where the information is read from- Returns:
- true if boundary condition is set else false
-
isSpeciesConstant
Indicates if constant of a species is set- Parameters:
speciesNode- the node where the information is read from- Returns:
- true if constant is set else false
-
isSpeciesConversionFactor
Indicates if conversion factor of a species is set- Parameters:
speciesNode- the node where the information is read from- Returns:
- true if conversion factor is set else false
-
getSpeciesID
Returns the id of the species- Parameters:
speciesNode- the node where the information is read from- Returns:
- the species id if it is set else the empty string
-
getSpeciesName
Returns the name of the species- Parameters:
speciesNode- the node where the information is read from- Returns:
- the species name if it is set else the empty string
-
getSpeciesCompartment
Returns the compartment id of a species- Parameters:
Node- the node where the information is read from- Returns:
- the compartment id if it is set else the empty string
-
getSpeciesInitialAmount
Returns the initial amount of a species- Parameters:
speciesNode- the node where the information is read from- Returns:
- initial amount if it is set else null
-
getSpeciesInitialConcentration
Returns the initial concentration of a species- Parameters:
speciesNode- the node where the information is read from- Returns:
- initial concentration if it is set else null
-
getSpeciesSubstanceUnits
Returns the substance units of a species- Parameters:
speciesNode- the node where the information is read from- Returns:
- substance Units if it is set else the empty string
-
getSpeciesHasOnlySubstanceUnits
Returns the boolean value hasOnlySubstanceUnits of the species- Parameters:
speciesNode- the node where the information is read from- Returns:
- a boolean value if the attribute hasOnlySubstanceUnits is set else null
-
getSpeciesBoundaryCondition
Returns the boolean value boundaryCondition of the species- Parameters:
speciesNode- the node where the information is read from- Returns:
- a boolean value if the attribute boundaryCondition is set else null
-
getSpeciesConstant
Returns the boolean value constant of the species- Parameters:
speciesNode- the node where the information is read from- Returns:
- a boolean value if the attribute constant is set else null
-
getSpeciesConversionFactor
Returns the conversion factor units of a species- Parameters:
speciesNode- the node where the information is read from- Returns:
- conversion factor if it is set else null
-
addSpeciesID
Sets the id of a species node- Parameters:
speciesNode- where the information should be read inid- the id to set
-
addSpeciesName
-
setSpeciesAttributes
-
addSpeciesCompartment
Sets the compartment of a node- Parameters:
speciesNode- the compartment belongs to this nodecompartment- the id of the compartment that will be set
-
addSpeciesInitialAmount
Sets the initial amount of a node- Parameters:
speciesNode- the initial amount belongs to this nodeinitialAmount- the value that will be set
-
addSpeciesInitialConcentration
Sets the initial concentration of a node- Parameters:
speciesNode- the initial concentration belongs to this nodeinitialConcentration- the value that will be set
-
addSpeciesSubstanceUnits
Sets the substance units of a species node- Parameters:
speciesNode- the substance units belong to this nodesubstanceUnits- the substance units to set
-
addSpeciesHasOnlySubstanceUnits
public static void addSpeciesHasOnlySubstanceUnits(Node speciesNode, Boolean hasOnlySubstanceUnits)Sets the attribute hasOnlySubstanceUnits of a species node- Parameters:
speciesNode- where the attribute is going to be addedhasOnlySubstanceUnits- the value that will be set
-
addSpeciesBoundaryConsition
Sets the attribute boundary condition of a species node- Parameters:
speciesNode- where the attribute is going to be addedboundaryCondition- the value that will be set
-
addSpeciesConstant
Sets the attribute constant of a species node- Parameters:
speciesNode- where the attribute is going to be addedconstant- the value that will be set
-
addSpeciesConversionFactor
Sets the attribute conversion factor of a species node- Parameters:
speciesNode- where the attribute is going to be addedconversionFactor- the value that will be set
-
deleteSpeciesID
-
deleteSpeciesName
-
deleteSpeciesCompartment
-
deleteSpeciesInitialAmount
-
deleteSpeciesInitialConcentration
-
deleteSpeciesSubstanceUnits
-
deleteSpeciesHasOnlySubstanceUnits
-
deleteSpeciesBoundaryCondition
-
deleteSpeciesConstant
-
deleteSpeciesConversionFactor
-
deleteSpecies
-
getSpeciesNodes
Returns all species nodes of the graph- Returns:
- a list of all species nodes of the graph
-
getSpeciesNode
Returns the species node with a distinct id- Parameters:
id- the id of the asked node- Returns:
- the node with a certain id or null if no node has this id
-
getSpecies
Returns a JSBML Species object belonging to a species node- Parameters:
node- the species node- Returns:
- a JSBML Species object
-
createSpecies
Creates a new species node and sets its id- Parameters:
g- the node is added to this graphid- the value of the id that will be set- Returns:
- a node or null if the id is the empty string
-
initSpeciesNode
This method converts a node into a species node- Parameters:
n- the node that will be transformed- Returns:
- the species node that will be returned
-
createSpecies
-
createParameter
-
createParameter
-
addParameterName
-
addParameterValue
-
addParameterUnits
-
addParameterConstant
-
deleteParameterName
-
deleteParameterID
-
deleteParameterValue
-
deleteParameterUnits
-
deleteParameterConstant
-
deleteParameter
-
isSetParameterName
-
isSetParameterValue
-
isSetParameterUnits
-
isSetParameterConstant
-
getAllParameters
Returns a list of parameter with distinct headlines- Parameters:
g- contains the information- Returns:
- a filled list of parameters
-
createInitialAssignment
-
createInitialAssignment
-
addInitialAssignmentFunction
-
deleteInitialAssignmentSymbol
-
deleteInitialAssignmentFunction
-
deleteInitialAssignment
-
isSetInitialAssignmentFunction
-
isSetInitialAssignmentSymbol
-
getAllInitialAssignment
Returns a list of initial assignment with distinct headlines- Parameters:
g- contains the information- Returns:
- a filled list of initial assignment
-
deleteAssignmentRule
-
deleteRateRule
-
deleteAlgebraicRule
-
createAssignmentRule
-
createRateRule
-
createAlgebraicRule
-
createAssignmentRule
-
createRateRule
-
createAssignmentRule
-
createRateRule
-
createAlgebraicRule
-
isSetAssignmentRuleFunction
-
isSetAssignmentRuleVariable
-
isSetRateRuleFunction
-
isSetRateRuleVariable
-
deleteAssignmentRuleVariable
-
deleteAssignmentRuleFunction
-
deleteRateRuleVariable
-
deleteRateRuleFunction
-
deleteAlgebraicRuleFunction
-
addAssignmentRuleFunction
-
addAssignmentRuleVariable
-
addRateRuleFunction
-
addRateRuleVariable
-
addAlgebraicRule
-
getAssignmentRuleHeadlines
Returns a list of all assignment rule headlines in the graph- Parameters:
g- the graph where the information can be found- Returns:
- list of headlines
-
getAllAssignmentRules
Returns a list of assignment rules with distinct headlines- Parameters:
g- contains the informationinternHeadlines- a list which contains the number of the current assignment rule- Returns:
- a filled list of assignment rules
-
createConstraint
-
createConstraint
-
deleteConstraint
-
addConstraintMessage
-
addConstraintConstraint
-
deleteConstraintMessage
-
isSetConstraintMessage
-
getAllConstraints
Returns a list of constraint with distinct headlines- Parameters:
g- contains the information- Returns:
- a filled list of constraint
-
isReactionCompartment
Indicates if compartment of a reaction is set- Parameters:
reactionNode- the node where the information is read from- Returns:
- true if compartment is set else false
-
isReactionFast
Indicates if fast of a reaction is set- Parameters:
reactionNode- the node where the information is read from- Returns:
- true if fast is set else false
-
isReactionReversible
Indicates if reversible of a reaction is set- Parameters:
reactionNode- the node where the information is read from- Returns:
- true if reversible is set else false
-
isReactionName
Indicates if name of a reaction is set- Parameters:
reactionNode- the node where the information is read from- Returns:
- true if name is set else false
-
isReactionID
Indicates if id of a reaction is set- Parameters:
reactionNode- the node where the information is read from- Returns:
- true if id is set else false
-
getReactionID
Returns the id of a reaction- Parameters:
reactionNode- the node where the information is read from- Returns:
- id if it is set else the empty string
-
getReactionName
Returns the name of a reaction- Parameters:
reactionNode- the node where the information is read from- Returns:
- name if it is set else the empty string
-
getReactionReversible
Returns the attribute reversible of a reaction- Parameters:
reactionNode- the node where the information is read from- Returns:
- reversible if it is set else null
-
getReactionFast
Returns the attribute fast of a reaction- Parameters:
reactionNode- the node where the information is read from- Returns:
- fast if it is set else the empty string
-
getReactionCompartment
Returns the compartment of a reaction- Parameters:
reactionNode- the node where the information is read from- Returns:
- compartment if it is set else the empty string
-
setReactionID
Sets the attribute id of a node- Parameters:
reactionNode- the attribute belongs to this nodeid- the value that will be set
-
deleteReactionID
-
setReactionName
-
deleteReactionName
-
setReactionLabel
public static void setReactionLabel(Node reactionNode, String name, String id, PositionGridGenerator pgg)Sets the attribute name of a node- Parameters:
reactionNode- the attribute belongs to this nodename- the value that will be set
-
setReactionReversible
Sets the attribute reversible of a node- Parameters:
reactionNode- the attribute belongs to this nodereversible- the value that will be set
-
deleteReactionReversible
-
setReactionFast
Sets the attribute fast of a node- Parameters:
reactionNode- the attribute belongs to this nodefast- the value that will be set
-
deleteReactionFast
-
setReactionCompartment
Sets the compartment of a node- Parameters:
reactionNode- the compartment belongs to this nodecompartment- the id of the compartment that will be set
-
deleteReactionCompartment
-
setReactionSpecies
Sets the species of a reaction- Parameters:
reactionEdge- the edge where the information will be read inspecies- the value that will be read in
-
setReactionSpeciesID
The id of the species of an reaction- Parameters:
reactionEdge- the edge where the information will be read inID- the value that will be read in
-
setReactionSpeciesName
The name of the species of a reaction- Parameters:
reactionEdge- the edge where the information will be read inname- the value that will be read in
-
isReactionSpecies
Indicates if the species attribute is set- Parameters:
reactionEdge- the edge where the information will be read from- Returns:
- true if the value is set
-
isReactionSpeciesID
Indicates if the species id attribute is set- Parameters:
reactionEdge- the edge where the information will be read from- Returns:
- true if the value is set
-
isReactionSpeciesName
Indicates if the species name attribute is set- Parameters:
reactionEdge- the edge where the information will be read from- Returns:
- true if the value is set
-
getReactionSpecies
Returns the species- Parameters:
reactionEdge- the edge where the information will be read from- Returns:
- the value of the attribute species
-
getReactionSpeciesName
Returns the species name- Parameters:
reactionEdge- the edge where the information will be read from- Returns:
- the value of the attribute name
-
getReactionSpeciesID
Return the species id- Parameters:
reactionEdge- the edge where the information will be read from- Returns:
- the value of the attribute id
-
isReactionStoichiometry
Indicates if there is set a value for stoichiometry- Parameters:
reactionEdge- the edge where the information will be read from- Returns:
- true if the attribute stoichiometry is set
-
isReactionConstant
Indicates if there is set a value for constant- Parameters:
reactionEdge- the edge where the information will be read from- Returns:
- true if the attribute constant is set
-
getStoichiometry
Returns the value of the attribute stoichiometry- Parameters:
reactionEdge- the edge where the information will be read from- Returns:
- the value of stoichiometry if the value is set. Else null
-
getReactionConstant
Returns the value of the attribute constant- Parameters:
reactionEdge- the edge where the information will be read from- Returns:
- the value of constant if the value is set. Else null
-
setStoichiometry
Sets a value for the attribute stoichiometry- Parameters:
reactionEdge- the edge where the information will be read instoichiometry- the value that will be set
-
deleteStoichiometry
-
deleteConstant
-
deleteReactionSpecies
-
deleteReactionSpeciesID
-
deleteReactionSpeciesName
-
isSetStoichiometry
-
isSetConstant
-
isSetReactionSpecies
-
isSetReactionSpeciesID
-
isSetReactionSpeciesName
-
setReactionConstant
Sets a value for the attribute constant- Parameters:
reactionEdge- the edge where the information will be read inconstant- the value that will be set
-
isKineticLawFunction
Indicates if the function of a kinetic law is set- Parameters:
reactionNode- the node where the information will be read from- Returns:
- true id the value is set. Else false
-
getKineticLawFunction
Returns the function of a kinetic law- Parameters:
reactionNode- the node where the information will be read from- Returns:
- the function string if it is set. Else the empty string
-
addKineticLaw
-
addKineticLaw
-
deleteKineticLawFunction
-
isLocalParameterID
Indicates if the attribute id is set- Parameters:
reactionNode- the node where the information will be read fromlocalParameterCount- the number of the current local parameter- Returns:
- true if the value is set
-
isLocalParameterName
Indicates if the attribute name is set- Parameters:
reactionNode- the node where the information will be read fromlocalParameterCount- the number of the current local parameter- Returns:
- true if the value is set
-
isLocalParameterValue
Indicates if the attribute value is set- Parameters:
reactionNode- the node where the information will be read fromlocalParameterCount- the number of the current local parameter- Returns:
- true if the value is set
-
isLocalParameterUnits
Indicates if the attribute units is set- Parameters:
reactionNode- the node where the information will be read fromlocalParameterCount- the number of the current local parameter- Returns:
- true if the value is set
-
getLocalParameterID
Returns the value of the attribute id- Parameters:
reactionNode- the node where the information will be read fromlocalParameterCount- the number of the current local parameter- Returns:
- the value if it is set. Else the empty string
-
getLocalParameterName
Returns the value of the attribute name- Parameters:
reactionNode- the node where the information will be read fromlocalParameterCount- the number of the current local parameter- Returns:
- the value if it is set. Else the empty string
-
getLocalParameterValue
Returns the value of the attribute value- Parameters:
reactionNode- the node where the information will be read fromlocalParameterCount- the number of the current local parameter- Returns:
- the value if it is set. Else the empty string
-
getLocalParameterUnits
Returns the value of the attribute units- Parameters:
reactionNode- the node where the information will be read fromlocalParameterCount- the number of the current local parameter- Returns:
- the value if it is set. Else the empty string
-
getReactionNodes
Returns all reaction nodes of the graph- Returns:
- a list of all reaction nodes of the graph
-
getReactionNode
Returns the reaction node with a distinct id- Parameters:
id- the id of the asked node- Returns:
- the node with a certain id or null if no node has this id
-
createReaction
-
initReactionNode
-
addReactant
-
initReactantEdge
-
initProductEdge
-
addProduct
-
addModifier
-
addReactant
-
deleteReactant
-
deleteProduct
-
deleteModifier
-
addModifier
-
addProduct
-
createReaction
-
addLocalParameterName
-
isSetLocalParameterName
-
isSetLocalParameterUnits
-
isSetLocalParameterValue
-
deleteLocalParameterName
-
deleteLocalParameterValue
-
deleteLocalParameterUnits
-
deleteLocalParameter
-
deleteLocalParameterID
-
addLocalParameterValue
-
addLocalParameterUnits
-
getProducts
The edges with the simple species references will be returned- Parameters:
node- the reaction node- Returns:
- all outgoing edges
-
getReactants
The edges with the simple species references will be returned- Parameters:
node- the reaction node- Returns:
- all ingoing edges
-
getModifier
Returns the modifier edges- Parameters:
node- the reaction node- Returns:
- all modifier edges
-
getReaction
Returns a JSBML Reaction object belonging to a reaction node- Parameters:
node- the reaction node- Returns:
- a JSBML Reaction object
-
addLocalParameter
-
addLocalParameter
-
localParameterCount
Returns the number of local parameter- Parameters:
node- the current node- Returns:
- the amount of local parameter
-
createEvent
-
createEvent
-
addEventName
-
addEventUseValuesFromTriggerTime
-
addTriggerInitialValue
-
addTriggerPersistent
-
addTriggerFunction
-
isSetEventName
-
isSetEventUseValuesFromTriggerTime
-
isSetTriggerInitialValue
-
isSetTriggerPersistent
-
isSetTriggerFunction
-
isSetDelayFunction
-
isSetPriority
-
isSetDelay
-
deleteEventName
-
deleteEventUseValuesFromTriggerTime
-
deleteEventID
-
deleteTriggeInitialValue
-
deleteTriggerPersistent
-
deleteTriggerFunction
-
deleteDelayFunction
-
deletePriorityFunction
-
deleteTrigger
-
deletePriority
-
addTriggerToEvent
-
addTriggerToEvent
-
addPriorityToEvent
-
addDelayToEvent
-
addPriorityToEvent
-
addDelayToEvent
-
addEventAssignmentToEvent
-
addEventAssignmentToEvent
-
deleteEventAssignment
-
deleteEvent
-
getAllEvent
Returns a list of event with distinct headlines- Parameters:
g- contains the informationinternHeadlines- a list which contains the number of the current event- Returns:
- a filled list of event
-
isSetLayoutID
-