Package de.unirostock.sems.bives.ds.rn
Class ReactionNetworkEntity
- java.lang.Object
-
- de.unirostock.sems.bives.ds.rn.ReactionNetworkEntity
-
- All Implemented Interfaces:
GraphEntity
- Direct Known Subclasses:
ReactionNetworkCompartment
,ReactionNetworkReaction
,ReactionNetworkSubstance
public abstract class ReactionNetworkEntity extends Object implements GraphEntity
The Class ReactionNetworkEntity representing an entity in a reaction network.- Author:
- Martin Scharm
-
-
Field Summary
Fields Modifier and Type Field Description protected de.unirostock.sems.xmlutils.ds.DocumentNode
docA
The original document.protected de.unirostock.sems.xmlutils.ds.DocumentNode
docB
The modified document.protected String
id
The id of this entity.protected String
labelA
The labels in original doc.protected String
labelB
The labels in modified doc.protected boolean
singleDoc
The single doc flag if in single-doc-operation-mode.-
Fields inherited from interface de.unirostock.sems.bives.ds.GraphEntity
DELETE, INSERT, MODIFIED, UNMODIFIED
-
-
Constructor Summary
Constructors Constructor Description ReactionNetworkEntity(String entityId, String labelA, String labelB, de.unirostock.sems.xmlutils.ds.DocumentNode docA, de.unirostock.sems.xmlutils.ds.DocumentNode docB)
Instantiates a new entity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.unirostock.sems.xmlutils.ds.DocumentNode
getA()
Gets the original document node.de.unirostock.sems.xmlutils.ds.DocumentNode
getB()
Gets the modified document node.String
getId()
Gets the id of the entity.String
getLabel()
Gets the label.int
getModification()
Gets the modification of this entity.void
setDocA(de.unirostock.sems.xmlutils.ds.DocumentNode docA)
Sets the original document node.void
setDocB(de.unirostock.sems.xmlutils.ds.DocumentNode docB)
Sets the modified document node.void
setLabelA(String labelA)
Sets the original label.void
setLabelB(String labelB)
Sets the modified label.void
setSingleDocument()
Sets the single document flag.
-
-
-
Field Detail
-
id
protected String id
The id of this entity.
-
labelA
protected String labelA
The labels in original doc.
-
labelB
protected String labelB
The labels in modified doc.
-
docA
protected de.unirostock.sems.xmlutils.ds.DocumentNode docA
The original document.
-
docB
protected de.unirostock.sems.xmlutils.ds.DocumentNode docB
The modified document.
-
singleDoc
protected boolean singleDoc
The single doc flag if in single-doc-operation-mode.
-
-
Constructor Detail
-
ReactionNetworkEntity
public ReactionNetworkEntity(String entityId, String labelA, String labelB, de.unirostock.sems.xmlutils.ds.DocumentNode docA, de.unirostock.sems.xmlutils.ds.DocumentNode docB)
Instantiates a new entity.- Parameters:
entityId
- the entity idlabelA
- the label of that entity in the original documentlabelB
- the label of that entity in the modified documentdocA
- the original documentdocB
- the modified document
-
-
Method Detail
-
setDocA
public void setDocA(de.unirostock.sems.xmlutils.ds.DocumentNode docA)
Sets the original document node.- Parameters:
docA
- the original document node
-
setLabelA
public void setLabelA(String labelA)
Sets the original label.- Parameters:
labelA
- the label in the original document
-
setDocB
public void setDocB(de.unirostock.sems.xmlutils.ds.DocumentNode docB)
Sets the modified document node.- Parameters:
docB
- the modified document node
-
setLabelB
public void setLabelB(String labelB)
Sets the modified label.- Parameters:
labelB
- the label in the modified document
-
getA
public de.unirostock.sems.xmlutils.ds.DocumentNode getA()
Gets the original document node.- Returns:
- the original document node
-
getB
public de.unirostock.sems.xmlutils.ds.DocumentNode getB()
Gets the modified document node.- Returns:
- the modified document node
-
getId
public String getId()
Gets the id of the entity.- Returns:
- the id
-
getLabel
public String getLabel()
Gets the label.- Returns:
- the label
-
getModification
public int getModification()
Gets the modification of this entity.- Returns:
- the modification
-
setSingleDocument
public void setSingleDocument()
Sets the single document flag.
-
-