Skip to content
Snippets Groups Projects
Commit 303a0610 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

basic toString method implemented

parent 9233ccbb
No related branches found
No related tags found
1 merge request!771Resolve "wrong start and end of reaction lines"
...@@ -5,6 +5,7 @@ import javax.persistence.Entity; ...@@ -5,6 +5,7 @@ import javax.persistence.Entity;
import javax.persistence.ManyToOne; import javax.persistence.ManyToOne;
import lcsb.mapviewer.model.map.species.Element; import lcsb.mapviewer.model.map.species.Element;
import lcsb.mapviewer.modelutils.map.ElementUtils;
/** /**
* One of two known types of nodes in the {@link Reaction}. It defines input or * One of two known types of nodes in the {@link Reaction}. It defines input or
...@@ -91,5 +92,10 @@ public abstract class ReactionNode extends AbstractNode { ...@@ -91,5 +92,10 @@ public abstract class ReactionNode extends AbstractNode {
public void setStoichiometry(Double stoichiometry) { public void setStoichiometry(Double stoichiometry) {
this.stoichiometry = stoichiometry; this.stoichiometry = stoichiometry;
} }
@Override
public String toString() {
return new ElementUtils().getElementTag(this);
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment