Skip to content

Commit

Permalink
Refactor: Move interfaces to their own package. Towards #7.
Browse files Browse the repository at this point in the history
  • Loading branch information
devkhan committed Jun 6, 2016
1 parent c7380a4 commit c9aa1ff
Show file tree
Hide file tree
Showing 14 changed files with 56 additions and 39 deletions.
14 changes: 8 additions & 6 deletions src/main/java/edu/ucsd/sbrg/escher/models/AbstractBox.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
*/
package edu.ucsd.sbrg.escher.models;

import edu.ucsd.sbrg.escher.models.interfaces.Box;

/**
* @author Andreas Dräger
*/
Expand Down Expand Up @@ -88,7 +90,7 @@ public boolean equals(Object obj) {


/* (non-Javadoc)
* @see edu.ucsd.sbrg.escher.models.Box#getHeight()
* @see edu.ucsd.sbrg.escher.models.interfaces.Box#getHeight()
*/
@Override
public Double getHeight() {
Expand All @@ -97,7 +99,7 @@ public Double getHeight() {


/* (non-Javadoc)
* @see edu.ucsd.sbrg.escher.models.Box#getWidth()
* @see edu.ucsd.sbrg.escher.models.interfaces.Box#getWidth()
*/
@Override
public Double getWidth() {
Expand All @@ -119,7 +121,7 @@ public int hashCode() {


/* (non-Javadoc)
* @see edu.ucsd.sbrg.escher.models.Box#isSetHeight()
* @see edu.ucsd.sbrg.escher.models.interfaces.Box#isSetHeight()
*/
@Override
public boolean isSetHeight() {
Expand All @@ -128,7 +130,7 @@ public boolean isSetHeight() {


/* (non-Javadoc)
* @see edu.ucsd.sbrg.escher.models.Box#isSetWidth()
* @see edu.ucsd.sbrg.escher.models.interfaces.Box#isSetWidth()
*/
@Override
public boolean isSetWidth() {
Expand All @@ -137,7 +139,7 @@ public boolean isSetWidth() {


/* (non-Javadoc)
* @see edu.ucsd.sbrg.escher.models.Box#setHeight(java.lang.Double)
* @see edu.ucsd.sbrg.escher.models.interfaces.Box#setHeight(java.lang.Double)
*/
@Override
public void setHeight(Double height) {
Expand All @@ -146,7 +148,7 @@ public void setHeight(Double height) {


/* (non-Javadoc)
* @see edu.ucsd.sbrg.escher.models.Box#setWidth(java.lang.Double)
* @see edu.ucsd.sbrg.escher.models.interfaces.Box#setWidth(java.lang.Double)
*/
@Override
public void setWidth(Double width) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
*/
package edu.ucsd.sbrg.escher.models;

import edu.ucsd.sbrg.escher.models.interfaces.EscherBase;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;
Expand Down Expand Up @@ -82,7 +84,7 @@ public boolean equals(Object obj) {


/* (non-Javadoc)
* @see edu.ucsd.sbrg.escher.models.EscherBase#getUserObject(java.lang.String)
* @see edu.ucsd.sbrg.escher.models.interfaces.EscherBase#getUserObject(java.lang.String)
*/
@Override
public Object getUserObject(String key) {
Expand All @@ -104,7 +106,7 @@ public int hashCode() {


/* (non-Javadoc)
* @see edu.ucsd.sbrg.escher.models.EscherBase#putUserObject(java.lang.String, T)
* @see edu.ucsd.sbrg.escher.models.interfaces.EscherBase#putUserObject(java.lang.String, T)
*/
@Override
public <T> Object putUserObject(String key, T value) {
Expand All @@ -113,7 +115,7 @@ public <T> Object putUserObject(String key, T value) {


/* (non-Javadoc)
* @see edu.ucsd.sbrg.escher.models.EscherBase#userObjectEntrySet()
* @see edu.ucsd.sbrg.escher.models.interfaces.EscherBase#userObjectEntrySet()
*/
@Override
public Set<Map.Entry<String, Object>> userObjectEntrySet() {
Expand All @@ -122,7 +124,7 @@ public Set<Map.Entry<String, Object>> userObjectEntrySet() {


/* (non-Javadoc)
* @see edu.ucsd.sbrg.escher.models.EscherBase#userObjectKeys()
* @see edu.ucsd.sbrg.escher.models.interfaces.EscherBase#userObjectKeys()
*/
@Override
public Set<String> userObjectKeys() {
Expand Down
14 changes: 8 additions & 6 deletions src/main/java/edu/ucsd/sbrg/escher/models/AbstractPosition.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
*/
package edu.ucsd.sbrg.escher.models;

import edu.ucsd.sbrg.escher.models.interfaces.Position;

/**
* @author Andreas Dr&auml;ger
*/
Expand Down Expand Up @@ -100,7 +102,7 @@ public boolean equals(Object obj) {


/* (non-Javadoc)
* @see edu.ucsd.sbrg.escher.models.Position#getX()
* @see edu.ucsd.sbrg.escher.models.interfaces.Position#getX()
*/
@Override
public Double getX() {
Expand All @@ -109,7 +111,7 @@ public Double getX() {


/* (non-Javadoc)
* @see edu.ucsd.sbrg.escher.models.Position#getY()
* @see edu.ucsd.sbrg.escher.models.interfaces.Position#getY()
*/
@Override
public Double getY() {
Expand All @@ -131,7 +133,7 @@ public int hashCode() {


/* (non-Javadoc)
* @see edu.ucsd.sbrg.escher.models.Position#isSetX()
* @see edu.ucsd.sbrg.escher.models.interfaces.Position#isSetX()
*/
@Override
public boolean isSetX() {
Expand All @@ -140,7 +142,7 @@ public boolean isSetX() {


/* (non-Javadoc)
* @see edu.ucsd.sbrg.escher.models.Position#isSetY()
* @see edu.ucsd.sbrg.escher.models.interfaces.Position#isSetY()
*/
@Override
public boolean isSetY() {
Expand All @@ -149,7 +151,7 @@ public boolean isSetY() {


/* (non-Javadoc)
* @see edu.ucsd.sbrg.escher.models.Position#setX(java.lang.Double)
* @see edu.ucsd.sbrg.escher.models.interfaces.Position#setX(java.lang.Double)
*/
@Override
public void setX(Double x) {
Expand All @@ -158,7 +160,7 @@ public void setX(Double x) {


/* (non-Javadoc)
* @see edu.ucsd.sbrg.escher.models.Position#setY(java.lang.Double)
* @see edu.ucsd.sbrg.escher.models.interfaces.Position#setY(java.lang.Double)
*/
@Override
public void setY(Double y) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*/
package edu.ucsd.sbrg.escher.models;

import edu.ucsd.sbrg.escher.models.interfaces.Element;
import org.sbml.jsbml.util.ResourceManager;

import java.text.MessageFormat;
Expand Down Expand Up @@ -79,7 +80,7 @@ public EscherCompartment clone() {


/* (non-Javadoc)
* @see edu.ucsd.sbrg.escher.models.Element#getId()
* @see edu.ucsd.sbrg.escher.models.interfaces.Element#getId()
*/
@Override
public String getId() {
Expand All @@ -99,7 +100,7 @@ public String getName() {


/* (non-Javadoc)
* @see edu.ucsd.sbrg.escher.models.Element#isSetId()
* @see edu.ucsd.sbrg.escher.models.interfaces.Element#isSetId()
*/
@Override
public boolean isSetId() {
Expand All @@ -116,7 +117,7 @@ public boolean isSetName() {


/* (non-Javadoc)
* @see edu.ucsd.sbrg.escher.models.Element#setId(java.lang.String)
* @see edu.ucsd.sbrg.escher.models.interfaces.Element#setId(java.lang.String)
*/
@Override
public void setId(String id) {
Expand Down
7 changes: 4 additions & 3 deletions src/main/java/edu/ucsd/sbrg/escher/models/EscherReaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*/
package edu.ucsd.sbrg.escher.models;

import edu.ucsd.sbrg.escher.models.interfaces.Element;
import org.sbml.jsbml.util.ResourceManager;

import java.text.MessageFormat;
Expand Down Expand Up @@ -362,7 +363,7 @@ public Map<String, Gene> getGenes() {


/* (non-Javadoc)
* @see edu.ucsd.sbrg.escher.models.Element#getId()
* @see edu.ucsd.sbrg.escher.models.interfaces.Element#getId()
*/
@Override
public String getId() {
Expand Down Expand Up @@ -511,7 +512,7 @@ public boolean isSetGeneReactionRule() {


/* (non-Javadoc)
* @see edu.ucsd.sbrg.escher.models.Element#isSetId()
* @see edu.ucsd.sbrg.escher.models.interfaces.Element#isSetId()
*/
@Override
public boolean isSetId() {
Expand Down Expand Up @@ -593,7 +594,7 @@ public void setGeneReactionRule(String geneReactionRule) {


/* (non-Javadoc)
* @see edu.ucsd.sbrg.escher.models.Element#setId(java.lang.String)
* @see edu.ucsd.sbrg.escher.models.interfaces.Element#setId(java.lang.String)
*/
@Override
public void setId(String id) {
Expand Down
8 changes: 5 additions & 3 deletions src/main/java/edu/ucsd/sbrg/escher/models/Gene.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
*/
package edu.ucsd.sbrg.escher.models;

import edu.ucsd.sbrg.escher.models.interfaces.Element;

/**
* @author Andreas Dr&auml;ger
*/
Expand Down Expand Up @@ -102,7 +104,7 @@ public boolean equals(Object obj) {


/* (non-Javadoc)
* @see edu.ucsd.sbrg.escher.models.Element#getId()
* @see edu.ucsd.sbrg.escher.models.interfaces.Element#getId()
*/
@Override
public String getId() {
Expand Down Expand Up @@ -132,7 +134,7 @@ public int hashCode() {


/* (non-Javadoc)
* @see edu.ucsd.sbrg.escher.models.Element#isSetId()
* @see edu.ucsd.sbrg.escher.models.interfaces.Element#isSetId()
*/
@Override
public boolean isSetId() {
Expand All @@ -149,7 +151,7 @@ public boolean isSetName() {


/* (non-Javadoc)
* @see edu.ucsd.sbrg.escher.models.Element#setId(java.lang.String)
* @see edu.ucsd.sbrg.escher.models.interfaces.Element#setId(java.lang.String)
*/
@Override
public void setId(String id) {
Expand Down
8 changes: 5 additions & 3 deletions src/main/java/edu/ucsd/sbrg/escher/models/Metabolite.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
*/
package edu.ucsd.sbrg.escher.models;

import edu.ucsd.sbrg.escher.models.interfaces.Element;

/**
* @author Andreas Dr&auml;ger
*/
Expand Down Expand Up @@ -119,7 +121,7 @@ public Double getCoefficient() {


/* (non-Javadoc)
* @see edu.ucsd.sbrg.escher.models.Element#getId()
* @see edu.ucsd.sbrg.escher.models.interfaces.Element#getId()
*/
@Override
public String getId() {
Expand Down Expand Up @@ -159,7 +161,7 @@ public boolean isSetCoefficient() {


/* (non-Javadoc)
* @see edu.ucsd.sbrg.escher.models.Element#isSetId()
* @see edu.ucsd.sbrg.escher.models.interfaces.Element#isSetId()
*/
@Override
public boolean isSetId() {
Expand All @@ -184,7 +186,7 @@ public void setCoefficient(Double coefficient) {


/* (non-Javadoc)
* @see edu.ucsd.sbrg.escher.models.Element#setId(java.lang.String)
* @see edu.ucsd.sbrg.escher.models.interfaces.Element#setId(java.lang.String)
*/
@Override
public void setId(String id) {
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/edu/ucsd/sbrg/escher/models/Node.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*/
package edu.ucsd.sbrg.escher.models;

import edu.ucsd.sbrg.escher.models.interfaces.Element;
import org.sbml.jsbml.util.ResourceManager;

import java.text.MessageFormat;
Expand Down Expand Up @@ -557,7 +558,7 @@ public void setConnectedSegments(


/* (non-Javadoc)
* @see edu.ucsd.sbrg.escher.models.Element#setId(java.lang.String)
* @see edu.ucsd.sbrg.escher.models.interfaces.Element#setId(java.lang.String)
*/
@Override
public void setId(String id) {
Expand Down
8 changes: 5 additions & 3 deletions src/main/java/edu/ucsd/sbrg/escher/models/Segment.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
*/
package edu.ucsd.sbrg.escher.models;

import edu.ucsd.sbrg.escher.models.interfaces.Element;

/**
* @author Andreas Dr&auml;ger
*/
Expand Down Expand Up @@ -163,7 +165,7 @@ public String getFromNodeId() {


/* (non-Javadoc)
* @see edu.ucsd.sbrg.escher.models.Element#getId()
* @see edu.ucsd.sbrg.escher.models.interfaces.Element#getId()
*/
@Override
public String getId() {
Expand Down Expand Up @@ -221,7 +223,7 @@ public boolean isSetFromNodeId() {


/* (non-Javadoc)
* @see edu.ucsd.sbrg.escher.models.Element#isSetId()
* @see edu.ucsd.sbrg.escher.models.interfaces.Element#isSetId()
*/
@Override
public boolean isSetId() {
Expand Down Expand Up @@ -282,7 +284,7 @@ public void setFromNodeId(String fromNodeId) {


/* (non-Javadoc)
* @see edu.ucsd.sbrg.escher.models.Element#setId(java.lang.String)
* @see edu.ucsd.sbrg.escher.models.interfaces.Element#setId(java.lang.String)
*/
@Override
public void setId(String id) {
Expand Down
Loading

0 comments on commit c9aa1ff

Please sign in to comment.