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
_pgg
static SBML_SBase_Reader
attReader
static SBML_SBase_Writer
attWriter
Provides necessary methodsstatic String
SBML_LAYOUT_EXTENSION_NAMESPACE
-
Constructor Summary
Constructors Constructor Description SBMLHelper()
-
Method Summary
Modifier and Type Method Description static void
addAlgebraicRule(Graph g, String function)
static void
addAssignmentRuleFunction(Graph g, String variable, String function)
static void
addAssignmentRuleVariable(Graph g, String variable)
static void
addCompartmentConstant(Graph g, String id, boolean constant)
static void
addCompartmentName(Graph g, String id, String name)
static void
addCompartmentSize(Graph g, String id, Double value)
static void
addCompartmentSpatialDimensions(Graph g, String id, Double value)
static void
addCompartmentUnits(Graph g, String id, String units)
static void
addConstraintConstraint(Graph g, String formula)
static void
addConstraintMessage(Graph g, String formula, String message)
static void
addDelayToEvent(Graph g, String id, String function)
static void
addDelayToEvent(Graph g, String id, org.sbml.jsbml.Delay delay)
static void
addEventAssignmentToEvent(Graph g, String id, String variable, String function)
static void
addEventAssignmentToEvent(Graph g, String id, org.sbml.jsbml.EventAssignment eventAssignment)
static void
addEventName(Graph g, String id, String name)
static void
addEventUseValuesFromTriggerTime(Graph g, String id, boolean useValuesFromTriggerTime)
static void
addFunctionDefinitionFunction(Graph g, String id, String function)
static void
addFunctionDefinitionName(Graph g, String id, String name)
static void
addInitialAssignmentFunction(Graph g, String symbol, String function)
static void
addKineticLaw(Node reactionNode, String function)
static void
addKineticLaw(Node reactionNode, org.sbml.jsbml.KineticLaw kineticLaw)
static void
addLocalParameter(Node node, String id)
static void
addLocalParameter(Node node, org.sbml.jsbml.LocalParameter lp)
static void
addLocalParameterName(Node node, String lpID, String name)
static void
addLocalParameterUnits(Node node, String lpID, String units)
static void
addLocalParameterValue(Node node, String lpID, Double value)
static Edge
addModifier(Node node, String speciesID)
static Edge
addModifier(Node node, org.sbml.jsbml.ModifierSpeciesReference ref)
static void
addParameterConstant(Graph g, String id, boolean constant)
static void
addParameterName(Graph g, String id, String name)
static void
addParameterUnits(Graph g, String id, String units)
static void
addParameterValue(Graph g, String id, Double value)
static void
addPriorityToEvent(Graph g, String id, String function)
static void
addPriorityToEvent(Graph g, String id, org.sbml.jsbml.Priority priority)
static Edge
addProduct(Node node, String speciesID)
static Edge
addProduct(Node node, org.sbml.jsbml.SpeciesReference ref)
static void
addRateRuleFunction(Graph g, String variable, String function)
static void
addRateRuleVariable(Graph g, String variable)
static Edge
addReactant(Node node, String speciesID)
static Edge
addReactant(Node node, org.sbml.jsbml.SpeciesReference ref)
static void
addSpeciesBoundaryConsition(Node speciesNode, Boolean boundaryCondition)
Sets the attribute boundary condition of a species nodestatic void
addSpeciesCompartment(Node speciesNode, String compartment)
Sets the compartment of a nodestatic void
addSpeciesConstant(Node speciesNode, Boolean constant)
Sets the attribute constant of a species nodestatic void
addSpeciesConversionFactor(Node speciesNode, String conversionFactor)
Sets the attribute conversion factor of a species nodestatic void
addSpeciesHasOnlySubstanceUnits(Node speciesNode, Boolean hasOnlySubstanceUnits)
Sets the attribute hasOnlySubstanceUnits of a species nodestatic void
addSpeciesID(Node speciesNode, String id)
Sets the id of a species nodestatic void
addSpeciesInitialAmount(Node speciesNode, Double initialAmount)
Sets the initial amount of a nodestatic void
addSpeciesInitialConcentration(Node speciesNode, Double initialConcentration)
Sets the initial concentration of a nodestatic void
addSpeciesName(Node speciesNode, String name)
static void
addSpeciesSubstanceUnits(Node speciesNode, String substanceUnits)
Sets the substance units of a species nodestatic void
addTriggerFunction(Graph g, String eventID, String function)
static void
addTriggerInitialValue(Graph g, String eventID, boolean initialValue)
static void
addTriggerPersistent(Graph g, String eventID, boolean persistent)
static void
addTriggerToEvent(Graph g, String id, boolean initialValue, boolean persistent, String formula)
static void
addTriggerToEvent(Graph g, String id, org.sbml.jsbml.Trigger trigger)
static void
addUnitDefinitionID(Graph g, String oldID, String newID)
static void
addUnitDefinitionName(Graph g, String id, String name)
static void
addUnitToUnitDefinition(Graph g, String id, org.sbml.jsbml.Unit unit)
static void
addUnitToUnitDefinition(Graph g, String id, org.sbml.jsbml.Unit.Kind kind, double exponent, double multiplier, int scale)
static int
countFunctionDefinitions(Graph g)
Returns the number of function definitions in the graphstatic org.sbml.jsbml.AlgebraicRule
createAlgebraicRule(Graph g, String formula)
static void
createAlgebraicRule(Graph g, org.sbml.jsbml.AlgebraicRule ar)
static org.sbml.jsbml.AssignmentRule
createAssignmentRule(Graph g, String variable)
static org.sbml.jsbml.AssignmentRule
createAssignmentRule(Graph g, String variable, String formula)
static void
createAssignmentRule(Graph g, org.sbml.jsbml.AssignmentRule ar)
static org.sbml.jsbml.Compartment
createCompartment(Graph g, String id)
Creates an compartment in the graph tab with an specific idstatic void
createCompartment(Graph g, org.sbml.jsbml.Compartment compartment)
static org.sbml.jsbml.Constraint
createConstraint(Graph g, String math)
static void
createConstraint(Graph g, org.sbml.jsbml.Constraint constraint)
static org.sbml.jsbml.Event
createEvent(Graph g, String id)
static void
createEvent(Graph g, org.sbml.jsbml.Event event)
static org.sbml.jsbml.FunctionDefinition
createFunctionDefinition(Graph g, String id)
static void
createFunctionDefinition(Graph g, org.sbml.jsbml.FunctionDefinition fd)
static org.sbml.jsbml.InitialAssignment
createInitialAssignment(Graph g, String symbol)
static void
createInitialAssignment(Graph g, org.sbml.jsbml.InitialAssignment ia)
static org.sbml.jsbml.Parameter
createParameter(Graph g, String id)
static void
createParameter(Graph g, org.sbml.jsbml.Parameter parameter)
static org.sbml.jsbml.RateRule
createRateRule(Graph g, String variable)
static org.sbml.jsbml.RateRule
createRateRule(Graph g, String variable, String formula)
static void
createRateRule(Graph g, org.sbml.jsbml.RateRule rr)
static Node
createReaction(Graph g, String id, String name)
static Node
createReaction(Graph g, org.sbml.jsbml.Reaction reaction)
static Node
createSpecies(Graph g, String id, String name)
Creates a new species node and sets its idstatic Node
createSpecies(Graph g, org.sbml.jsbml.Species species)
static org.sbml.jsbml.UnitDefinition
createUnitDefinition(Graph g, String id)
static void
createUnitDefinition(Graph g, org.sbml.jsbml.UnitDefinition ud)
static void
deleteAlgebraicRule(Graph g, String formula)
static void
deleteAlgebraicRuleFunction(Graph g, String function)
static void
deleteAssignmentRule(Graph g, String variable)
static void
deleteAssignmentRuleFunction(Graph g, String variable)
static void
deleteAssignmentRuleVariable(Graph g, String variable)
static void
deleteCompartment(Graph g, String id)
static void
deleteCompartmentConstant(Graph g, String id)
static void
deleteCompartmentID(Graph g, String id)
static void
deleteCompartmentName(Graph g, String id)
static void
deleteCompartmentSize(Graph g, String id)
static void
deleteCompartmentSpatialDimensions(Graph g, String id)
static void
deleteCompartmentUnits(Graph g, String id)
static void
deleteConstant(Edge edge)
static void
deleteConstraint(Graph g, String formula)
static void
deleteConstraintMessage(Graph g, String constraint)
static void
deleteDelayFunction(Graph g, String id)
static void
deleteEvent(Graph g, String id)
static void
deleteEventAssignment(Graph g, String id, String variable)
static void
deleteEventID(Graph g, String id)
static void
deleteEventName(Graph g, String id)
static void
deleteEventUseValuesFromTriggerTime(Graph g, String id)
static void
deleteFunctionDefinition(Graph g, String id)
static void
deleteFunctionDefinitionFunction(Graph g, String id)
static void
deleteFunctionDefinitionID(Graph g, String id)
static void
deleteFunctionDefinitionName(Graph g, String id)
static void
deleteInitialAssignment(Graph g, String symbol)
static void
deleteInitialAssignmentFunction(Graph g, String symbol)
static void
deleteInitialAssignmentSymbol(Graph g, String symbol)
static void
deleteKineticLawFunction(Node node)
static void
deleteLocalParameter(Node node, String lpID)
static void
deleteLocalParameterID(Node node, String lpID)
static void
deleteLocalParameterName(Node node, String lpID)
static void
deleteLocalParameterUnits(Node node, String lpID)
static void
deleteLocalParameterValue(Node node, String lpID)
static void
deleteModifier(Edge edge)
static void
deleteParameter(Graph g, String id)
static void
deleteParameterConstant(Graph g, String id)
static void
deleteParameterID(Graph g, String id)
static void
deleteParameterName(Graph g, String id)
static void
deleteParameterUnits(Graph g, String id)
static void
deleteParameterValue(Graph g, String id)
static void
deletePriority(Graph g, String id)
static void
deletePriorityFunction(Graph g, String id)
static void
deleteProduct(Edge edge)
static void
deleteRateRule(Graph g, String variable)
static void
deleteRateRuleFunction(Graph g, String variable)
static void
deleteRateRuleVariable(Graph g, String variable)
static void
deleteReactant(Edge edge)
static void
deleteReactionCompartment(Node reactionNode)
static void
deleteReactionFast(Node reactionNode)
static void
deleteReactionID(Node reactionNode)
static void
deleteReactionName(Node reactionNode)
static void
deleteReactionReversible(Node reactionNode)
static void
deleteReactionSpecies(Edge edge)
static void
deleteReactionSpeciesID(Edge edge)
static void
deleteReactionSpeciesName(Edge edge)
static void
deleteSpecies(Node node)
static void
deleteSpeciesBoundaryCondition(Node node)
static void
deleteSpeciesCompartment(Node node)
static void
deleteSpeciesConstant(Node node)
static void
deleteSpeciesConversionFactor(Node node)
static void
deleteSpeciesHasOnlySubstanceUnits(Node node)
static void
deleteSpeciesID(Node node)
static void
deleteSpeciesInitialAmount(Node node)
static void
deleteSpeciesInitialConcentration(Node node)
static void
deleteSpeciesName(Node node)
static void
deleteSpeciesSubstanceUnits(Node node)
static void
deleteStoichiometry(Edge edge)
static void
deleteTriggeInitialValue(Graph g, String id)
static void
deleteTrigger(Graph g, String id)
static void
deleteTriggerFunction(Graph g, String id)
static void
deleteTriggerPersistent(Graph g, String id)
static void
deleteUnitDefinitionID(Graph g, String id)
static void
deleteUnitDefinitionName(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 String
getKineticLawFunction(Node reactionNode)
Returns the function of a kinetic lawstatic String
getLocalParameterID(Node reactionNode, int localParameterCount)
Returns the value of the attribute idstatic String
getLocalParameterName(Node reactionNode, int localParameterCount)
Returns the value of the attribute namestatic String
getLocalParameterUnits(Node reactionNode, int localParameterCount)
Returns the value of the attribute unitsstatic Double
getLocalParameterValue(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.Reaction
getReaction(Node node)
Returns a JSBML Reaction object belonging to a reaction nodestatic String
getReactionCompartment(Node reactionNode)
Returns the compartment of a reactionstatic Boolean
getReactionConstant(Edge reactionEdge)
Returns the value of the attribute constantstatic Boolean
getReactionFast(Node reactionNode)
Returns the attribute fast of a reactionstatic String
getReactionID(Node reactionNode)
Returns the id of a reactionstatic String
getReactionName(Node reactionNode)
Returns the name of a reactionstatic Node
getReactionNode(Graph g, String id)
Returns the reaction node with a distinct idstatic List<Node>
getReactionNodes(Graph g)
Returns all reaction nodes of the graphstatic Boolean
getReactionReversible(Node reactionNode)
Returns the attribute reversible of a reactionstatic String
getReactionSpecies(Edge reactionEdge)
Returns the speciesstatic String
getReactionSpeciesID(Edge reactionEdge)
Return the species idstatic String
getReactionSpeciesName(Edge reactionEdge)
Returns the species namestatic org.sbml.jsbml.Species
getSpecies(Node node)
Returns a JSBML Species object belonging to a species nodestatic Boolean
getSpeciesBoundaryCondition(Node speciesNode)
Returns the boolean value boundaryCondition of the speciesstatic String
getSpeciesCompartment(Node speciesNode)
Returns the compartment id of a speciesstatic Boolean
getSpeciesConstant(Node speciesNode)
Returns the boolean value constant of the speciesstatic String
getSpeciesConversionFactor(Node speciesNode)
Returns the conversion factor units of a speciesstatic Boolean
getSpeciesHasOnlySubstanceUnits(Node speciesNode)
Returns the boolean value hasOnlySubstanceUnits of the speciesstatic String
getSpeciesID(Node speciesNode)
Returns the id of the speciesstatic Double
getSpeciesInitialAmount(Node speciesNode)
Returns the initial amount of a speciesstatic Double
getSpeciesInitialConcentration(Node speciesNode)
Returns the initial concentration of a speciesstatic String
getSpeciesName(Node speciesNode)
Returns the name of the speciesstatic Node
getSpeciesNode(Graph g, String id)
Returns the species node with a distinct idstatic List<Node>
getSpeciesNodes(Graph g)
Returns all species nodes of the graphstatic String
getSpeciesSubstanceUnits(Node speciesNode)
Returns the substance units of a speciesstatic String
getStoichiometry(Edge reactionEdge)
Returns the value of the attribute stoichiometrystatic Edge
initProductEdge(Edge e)
static Edge
initReactantEdge(Edge e)
static Node
initReactionNode(Node n)
static Node
initSpeciesNode(Node n)
This method converts a node into a species nodestatic Boolean
isKineticLawFunction(Node reactionNode)
Indicates if the function of a kinetic law is setstatic Boolean
isLocalParameterID(Node reactionNode, int localParameterCount)
Indicates if the attribute id is setstatic Boolean
isLocalParameterName(Node reactionNode, int localParameterCount)
Indicates if the attribute name is setstatic Boolean
isLocalParameterUnits(Node reactionNode, int localParameterCount)
Indicates if the attribute units is setstatic Boolean
isLocalParameterValue(Node reactionNode, int localParameterCount)
Indicates if the attribute value is setstatic Boolean
isReactionCompartment(Node reactionNode)
Indicates if compartment of a reaction is setstatic Boolean
isReactionConstant(Edge reactionEdge)
Indicates if there is set a value for constantstatic Boolean
isReactionFast(Node reactionNode)
Indicates if fast of a reaction is setstatic Boolean
isReactionID(Node reactionNode)
Indicates if id of a reaction is setstatic Boolean
isReactionName(Node reactionNode)
Indicates if name of a reaction is setstatic Boolean
isReactionReversible(Node reactionNode)
Indicates if reversible of a reaction is setstatic Boolean
isReactionSpecies(Edge reactionEdge)
Indicates if the species attribute is setstatic Boolean
isReactionSpeciesID(Edge reactionEdge)
Indicates if the species id attribute is setstatic Boolean
isReactionSpeciesName(Edge reactionEdge)
Indicates if the species name attribute is setstatic Boolean
isReactionStoichiometry(Edge reactionEdge)
Indicates if there is set a value for stoichiometrystatic boolean
isSetAssignmentRuleFunction(Graph g, String variable)
static boolean
isSetAssignmentRuleVariable(Graph g, String variable)
static boolean
isSetCompartmentConstants(Graph g, String id)
static boolean
isSetCompartmentID(Graph g, String id)
static boolean
isSetCompartmentName(Graph g, String id)
static boolean
isSetCompartmentSize(Graph g, String id)
static boolean
isSetCompartmentSpatialDimensions(Graph g, String id)
static boolean
isSetCompartmentUnits(Graph g, String id)
static boolean
isSetConstant(Edge edge)
static boolean
isSetConstraintMessage(Graph g, String constraint)
static boolean
isSetDelay(Graph g, String id)
static boolean
isSetDelayFunction(Graph g, String id)
static boolean
isSetEventName(Graph g, String id)
static boolean
isSetEventUseValuesFromTriggerTime(Graph g, String id)
static boolean
isSetFunctionDefinitionFunction(Graph g, String id)
static boolean
isSetFunctionDefinitionID(Graph g, String id)
static boolean
isSetFunctionDefinitionName(Graph g, String id)
static boolean
isSetInitialAssignmentFunction(Graph g, String symbol)
static boolean
isSetInitialAssignmentSymbol(Graph g, String symbol)
static boolean
isSetLayoutID(Graph g, Node node)
static boolean
isSetLocalParameterName(Node node, String lpID)
static boolean
isSetLocalParameterUnits(Node node, String lpID)
static boolean
isSetLocalParameterValue(Node node, String lpID)
static boolean
isSetParameterConstant(Graph g, String id)
static boolean
isSetParameterName(Graph g, String id)
static boolean
isSetParameterUnits(Graph g, String id)
static boolean
isSetParameterValue(Graph g, String id)
static boolean
isSetPriority(Graph g, String id)
static boolean
isSetRateRuleFunction(Graph g, String variable)
static boolean
isSetRateRuleVariable(Graph g, String variable)
static boolean
isSetReactionSpecies(Edge edge)
static boolean
isSetReactionSpeciesID(Edge edge)
static boolean
isSetReactionSpeciesName(Edge edge)
static boolean
isSetStoichiometry(Edge edge)
static boolean
isSetTriggerFunction(Graph g, String id)
static boolean
isSetTriggerInitialValue(Graph g, String id)
static boolean
isSetTriggerPersistent(Graph g, String id)
static boolean
isSetUnitDefinitionID(Graph g, String id)
static boolean
isSetUnitDefinitionName(Graph g, String id)
static Boolean
isSpeciesBoundaryCondition(Node speciesNode)
Indicates if boundary condition of a species is setstatic Boolean
isSpeciesCompartment(Node speciesNode)
Indicates if the compartment id of a species is setstatic Boolean
isSpeciesConstant(Node speciesNode)
Indicates if constant of a species is setstatic Boolean
isSpeciesConversionFactor(Node speciesNode)
Indicates if conversion factor of a species is setstatic Boolean
isSpeciesHasOnlySubstanceUnits(Node speciesNode)
Indicates if hasOnlySubstanceUnits of a species is setstatic Boolean
isSpeciesID(Node speciesNode)
Indicates if the id of a species is setstatic Boolean
isSpeciesInitialAmount(Node speciesNode)
Indicates if the initial amount of a species is setstatic Boolean
isSpeciesInitialConcentration(Node speciesNode)
Indicates if the initial concentration of a species is setstatic Boolean
isSpeciesName(Node speciesNode)
Indicates if the name of a species is setstatic Boolean
isSpeciesSubstanceUnits(Node speciesNode)
Indicates if substance units of a species is setstatic int
localParameterCount(Node node)
Returns the number of local parameterstatic void
setReactionCompartment(Node reactionNode, String compartment)
Sets the compartment of a nodestatic void
setReactionConstant(Edge reactionEdge, Boolean constant)
Sets a value for the attribute constantstatic void
setReactionFast(Node reactionNode, Boolean fast)
Sets the attribute fast of a nodestatic void
setReactionID(Node reactionNode, String ID)
Sets the attribute id of a nodestatic void
setReactionLabel(Node reactionNode, String name, String id, PositionGridGenerator pgg)
Sets the attribute name of a nodestatic void
setReactionName(Node reactionNode, String name)
static void
setReactionReversible(Node reactionNode, Boolean reversible)
Sets the attribute reversible of a nodestatic void
setReactionSpecies(Edge reactionEdge, String species)
Sets the species of a reactionstatic void
setReactionSpeciesID(Edge reactionEdge, String ID)
The id of the species of an reactionstatic void
setReactionSpeciesName(Edge reactionEdge, String name)
The name of the species of a reactionstatic void
setSpeciesAttributes(Node sbmlNode, String niceID, Object value)
static void
setStoichiometry(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
-