Class SBMLSpeciesHelper
java.lang.Object
de.ipk_gatersleben.ag_nw.graffiti.plugins.ios.sbml.SBMLNodesNiceIdHelper
de.ipk_gatersleben.ag_nw.graffiti.plugins.ios.sbml.SBMLSpeciesHelper
public class SBMLSpeciesHelper extends SBMLNodesNiceIdHelper
-
Field Summary
Fields Modifier and Type Field Description static Map<String,Node>
speciesMap
-
Constructor Summary
Constructors Constructor Description SBMLSpeciesHelper(Graph g)
Constructor. -
Method Summary
Modifier and Type Method Description void
addCloneToList(String speciesId, Node speciesNode)
void
deleteAnnotation(Node speciesNode)
void
deleteMetaID(Node speciesNode)
void
deleteNonRDFAnnotation(Node speciesNode)
void
deleteNotes(Node speciesNode)
void
deleteSBOTerm(Node speciesNode)
org.sbml.jsbml.Annotation
getAnnotation(Node speciesNode)
Boolean
getBoundaryCondition(Node speciesNode)
Returns the boolean value boundaryCondition of the speciesString
getCompartment(Node speciesNode)
Returns the compartment id of a speciesString
getCompartmentName(Node speciesNode)
Boolean
getConstant(Node speciesNode)
Returns the boolean value constant of the speciesString
getConversionFactor(Node speciesNode)
Returns the conversion factor units of a speciesBoolean
getHasOnlySubstanceUnits(Node speciesNode)
Returns the boolean value hasOnlySubstanceUnits of the speciesString
getID(Node speciesNode)
Returns the id of the speciesDouble
getInitialAmount(Node speciesNode)
Returns the initial amount of a speciesDouble
getInitialConcentration(Node speciesNode)
Returns the initial concentration of a speciesString
getMetaID(Node speciesNode)
String
getName(Node speciesNode)
Returns the name of the speciesorg.sbml.jsbml.Annotation
getNonRDFAnnotation(Node speciesNode)
org.sbml.jsbml.xml.XMLNode
getNotes(Node speciesNode)
String
getSBOTerm(Node speciesNode)
static Node
getSpeciesNode(String id)
Returns the species with a distinct idNode
getSpeciesNode(String layoutId, String speciesId)
List<Node>
getSpeciesNodes()
Returns all species nodes of the graphMap<String,List<Node>>
getSpeicesClones()
String
getSubstanceUnits(Node speciesNode)
Returns the substance units of a speciesBoolean
isSetAnnotation(Node speciesNode)
Boolean
isSetBoundaryCondition(Node speciesNode)
Indicates if boundary condition of a species is setBoolean
isSetCompartment(Node speciesNode)
Indicates if the compartment id of a species is setBoolean
isSetConstant(Node speciesNode)
Indicates if constant of a species is setBoolean
isSetConversionFactor(Node speciesNode)
Indicates if conversion factor of a species is setBoolean
isSetHasOnlySubstanceUnits(Node speciesNode)
Indicates if hasOnlySubstanceUnits of a species is setBoolean
isSetID(Node speciesNode)
Indicates if the id of a species is setBoolean
isSetInitialAmount(Node speciesNode)
Indicates if the initial amount of a species is setBoolean
isSetInitialConcentration(Node speciesNode)
Indicates if the initial concentration of a species is setBoolean
isSetMetaID(Node speciesNode)
Boolean
isSetName(Node speciesNode)
Indicates if the name of a species is setBoolean
isSetNonRDFAnnotation(Node speciesNode)
Boolean
isSetNotes(Node speciesNode)
Boolean
isSetSBOTerm(Node speciesNode)
Boolean
isSetSubstanceUnits(Node speciesNode)
Indicates if substance units of a species is setvoid
setAnnotation(Node speciesNode, org.sbml.jsbml.Annotation annotation)
void
setBoundaryConsition(Node speciesNode, Boolean boundaryCondition)
Sets the attribute boundary condition of a species nodevoid
setCharge(Node speciesNode, Integer charge)
Sets the deprecated attribute charge of a species nodevoid
setCompartment(Node speciesNode, String compartment)
Sets the compartment of a nodevoid
setCompartmentName(Node speciesNode)
void
setConstant(Node speciesNode, Boolean constant)
Sets the attribute constant of a species nodevoid
setConversionFactor(Node speciesNode, String conversionFactor)
Sets the attribute conversion factor of a species nodevoid
setHasOnlySubstanceUnits(Node speciesNode, Boolean hasOnlySubstanceUnits)
Sets the attribute hasOnlySubstanceUnits of a species nodevoid
setHiddenLabel(Node speciesNode, String id)
Sets the hidden label of a species nodevoid
setID(Node speciesNode, String id)
Sets the id of a species nodevoid
setInitialAmount(Node speciesNode, Double initialAmount)
Sets the initial amount of a nodevoid
setInitialConcentration(Node speciesNode, Double initialConcentration)
Sets the initial concentration of a nodevoid
setLabel(Node speciesNode, String name, String id, PositionGridGenerator pgg)
Sets the label of a node.void
setMetaID(Node speciesNode, String metaID)
Sets the attribute meta id of a species nodevoid
setNonRDFAnnotation(Node speciesNode, org.sbml.jsbml.xml.XMLNode xmlNode)
void
setNotes(Node speciesNode, String notes, org.sbml.jsbml.xml.XMLNode notesObj)
Sets the attribute notes of a species nodevoid
setSBOTerm(Node speciesNode, String sboTerm)
Sets the attribute sboTerm of a species nodevoid
setSubstanceUnits(Node speciesNode, String substanceUnits)
Sets the substance units of a species nodeMethods inherited from class de.ipk_gatersleben.ag_nw.graffiti.plugins.ios.sbml.SBMLNodesNiceIdHelper
initNiceIds, isInitialized
-
Field Details
-
speciesMap
-
-
Constructor Details
-
SBMLSpeciesHelper
Constructor. Initializes the graph- Parameters:
g
- the graph where the information is read from
-
-
Method Details
-
getSpeicesClones
-
getSpeciesNode
-
addCloneToList
-
getCompartmentName
-
getSpeciesNodes
Returns all species nodes of the graph- Returns:
- a list of all species nodes of the graph
-
getSpeciesNode
Returns the species 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
-
isSetCompartment
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
-
isSetID
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
-
isSetName
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
-
isSetInitialAmount
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
-
isSetInitialConcentration
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
-
isSetSubstanceUnits
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
-
isSetHasOnlySubstanceUnits
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
-
isSetBoundaryCondition
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
-
isSetConstant
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
-
isSetConversionFactor
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
-
getCompartment
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
-
getID
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
-
getName
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
-
getInitialAmount
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
-
getInitialConcentration
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
-
getSubstanceUnits
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
-
getHasOnlySubstanceUnits
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
-
getBoundaryCondition
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
-
getConstant
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
-
getConversionFactor
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
-
setID
Sets the id of a species node- Parameters:
speciesNode
- where the information should be read inid
- the id to set
-
setLabel
Sets the label of a node. The id string will be the label if name is not set- Parameters:
speciesNode
- where the information should be read inname
- the name to setid
- will be set if name is emptypgg
- helps to set the position of the node
-
setCompartment
Sets the compartment of a node- Parameters:
speciesNode
- the compartment belongs to this nodecompartment
- the id of the compartment that will be set
-
setCompartmentName
-
setInitialAmount
Sets the initial amount of a node- Parameters:
speciesNode
- the initial amount belongs to this nodeinitialAmount
- the value that will be set
-
setInitialConcentration
Sets the initial concentration of a node- Parameters:
speciesNode
- the initial concentration belongs to this nodeinitialConcentration
- the value that will be set
-
setSubstanceUnits
Sets the substance units of a species node- Parameters:
speciesNode
- the substance units belong to this nodesubstanceUnits
- the substance units to set
-
setHasOnlySubstanceUnits
Sets the attribute hasOnlySubstanceUnits of a species node- Parameters:
speciesNode
- where the attribute is going to be addedhasOnlySubstanceUnits
- the value that will be set
-
setBoundaryConsition
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
-
setConstant
Sets the attribute constant of a species node- Parameters:
speciesNode
- where the attribute is going to be addedconstant
- the value that will be set
-
setConversionFactor
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
-
setMetaID
Sets the attribute meta id of a species node- Parameters:
speciesNode
- where the attribute is going to be addedmetaID
- the value that will be set
-
isSetMetaID
-
deleteMetaID
-
getMetaID
-
setAnnotation
-
isSetAnnotation
-
deleteAnnotation
-
getAnnotation
-
setNonRDFAnnotation
-
isSetNonRDFAnnotation
-
deleteNonRDFAnnotation
-
getNonRDFAnnotation
-
setSBOTerm
Sets the attribute sboTerm of a species node- Parameters:
speciesNode
- where the attribute is going to be addedsboTerm
- the value that will be set
-
isSetSBOTerm
-
deleteSBOTerm
-
getSBOTerm
-
setNotes
Sets the attribute notes of a species node- Parameters:
speciesNode
- where the attribute is going to be addednotes
- the value that will be setnotesObj
- the Object that will be set
-
isSetNotes
-
deleteNotes
-
getNotes
-
setCharge
Sets the deprecated attribute charge of a species node- Parameters:
speciesNode
- where the attribute is going to be addedcharge
- the value that will be set
-
setHiddenLabel
Sets the hidden label of a species node- Parameters:
speciesNode
- where the attribute is going to be addedid
- the value that will be set
-