Commit 303a0610 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

basic toString method implemented

parent 9233ccbb
...@@ -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
...@@ -92,4 +93,9 @@ public abstract class ReactionNode extends AbstractNode { ...@@ -92,4 +93,9 @@ public abstract class ReactionNode extends AbstractNode {
this.stoichiometry = stoichiometry; this.stoichiometry = stoichiometry;
} }
@Override
public String toString() {
return new ElementUtils().getElementTag(this);
}
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment