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 voidaddCloneToList(String speciesId, Node speciesNode)voiddeleteAnnotation(Node speciesNode)voiddeleteMetaID(Node speciesNode)voiddeleteNonRDFAnnotation(Node speciesNode)voiddeleteNotes(Node speciesNode)voiddeleteSBOTerm(Node speciesNode)org.sbml.jsbml.AnnotationgetAnnotation(Node speciesNode)BooleangetBoundaryCondition(Node speciesNode)Returns the boolean value boundaryCondition of the speciesStringgetCompartment(Node speciesNode)Returns the compartment id of a speciesStringgetCompartmentName(Node speciesNode)BooleangetConstant(Node speciesNode)Returns the boolean value constant of the speciesStringgetConversionFactor(Node speciesNode)Returns the conversion factor units of a speciesBooleangetHasOnlySubstanceUnits(Node speciesNode)Returns the boolean value hasOnlySubstanceUnits of the speciesStringgetID(Node speciesNode)Returns the id of the speciesDoublegetInitialAmount(Node speciesNode)Returns the initial amount of a speciesDoublegetInitialConcentration(Node speciesNode)Returns the initial concentration of a speciesStringgetMetaID(Node speciesNode)StringgetName(Node speciesNode)Returns the name of the speciesorg.sbml.jsbml.AnnotationgetNonRDFAnnotation(Node speciesNode)org.sbml.jsbml.xml.XMLNodegetNotes(Node speciesNode)StringgetSBOTerm(Node speciesNode)static NodegetSpeciesNode(String id)Returns the species with a distinct idNodegetSpeciesNode(String layoutId, String speciesId)List<Node>getSpeciesNodes()Returns all species nodes of the graphMap<String,List<Node>>getSpeicesClones()StringgetSubstanceUnits(Node speciesNode)Returns the substance units of a speciesBooleanisSetAnnotation(Node speciesNode)BooleanisSetBoundaryCondition(Node speciesNode)Indicates if boundary condition of a species is setBooleanisSetCompartment(Node speciesNode)Indicates if the compartment id of a species is setBooleanisSetConstant(Node speciesNode)Indicates if constant of a species is setBooleanisSetConversionFactor(Node speciesNode)Indicates if conversion factor of a species is setBooleanisSetHasOnlySubstanceUnits(Node speciesNode)Indicates if hasOnlySubstanceUnits of a species is setBooleanisSetID(Node speciesNode)Indicates if the id of a species is setBooleanisSetInitialAmount(Node speciesNode)Indicates if the initial amount of a species is setBooleanisSetInitialConcentration(Node speciesNode)Indicates if the initial concentration of a species is setBooleanisSetMetaID(Node speciesNode)BooleanisSetName(Node speciesNode)Indicates if the name of a species is setBooleanisSetNonRDFAnnotation(Node speciesNode)BooleanisSetNotes(Node speciesNode)BooleanisSetSBOTerm(Node speciesNode)BooleanisSetSubstanceUnits(Node speciesNode)Indicates if substance units of a species is setvoidsetAnnotation(Node speciesNode, org.sbml.jsbml.Annotation annotation)voidsetBoundaryConsition(Node speciesNode, Boolean boundaryCondition)Sets the attribute boundary condition of a species nodevoidsetCharge(Node speciesNode, Integer charge)Sets the deprecated attribute charge of a species nodevoidsetCompartment(Node speciesNode, String compartment)Sets the compartment of a nodevoidsetCompartmentName(Node speciesNode)voidsetConstant(Node speciesNode, Boolean constant)Sets the attribute constant of a species nodevoidsetConversionFactor(Node speciesNode, String conversionFactor)Sets the attribute conversion factor of a species nodevoidsetHasOnlySubstanceUnits(Node speciesNode, Boolean hasOnlySubstanceUnits)Sets the attribute hasOnlySubstanceUnits of a species nodevoidsetHiddenLabel(Node speciesNode, String id)Sets the hidden label of a species nodevoidsetID(Node speciesNode, String id)Sets the id of a species nodevoidsetInitialAmount(Node speciesNode, Double initialAmount)Sets the initial amount of a nodevoidsetInitialConcentration(Node speciesNode, Double initialConcentration)Sets the initial concentration of a nodevoidsetLabel(Node speciesNode, String name, String id, PositionGridGenerator pgg)Sets the label of a node.voidsetMetaID(Node speciesNode, String metaID)Sets the attribute meta id of a species nodevoidsetNonRDFAnnotation(Node speciesNode, org.sbml.jsbml.xml.XMLNode xmlNode)voidsetNotes(Node speciesNode, String notes, org.sbml.jsbml.xml.XMLNode notesObj)Sets the attribute notes of a species nodevoidsetSBOTerm(Node speciesNode, String sboTerm)Sets the attribute sboTerm of a species nodevoidsetSubstanceUnits(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
-