jadex.swing.sequence
Class Clone

java.lang.Object
  |
  +--jadex.swing.sequence.Clone
All Implemented Interfaces:
MapPoint

public class Clone
extends java.lang.Object
implements MapPoint

This wrapper class contains information about a clone. An individual clone is a MapPoint, but it also has a MapRange.


Constructor Summary
Clone()
          Creates new Clone
Clone(java.lang.String n)
          Another constructor with name as a argument
Clone(java.lang.String n, MapRange r)
          Third constructor with name and maprange as arguements
Clone(java.lang.String n, MapRange r, Contig ctg)
          Fourth constructor with name, mapRange, and contig
 
Method Summary
 boolean equals(Clone another)
          Comparae if two clones are equal.
 jade.db.AceObject getAceObject()
          Get the wrapped AceObject for this clone.
 float getError()
          No error data from AceDB
 MapRange getMapRange()
          Get the MapRange of the clone.
 java.lang.String getName()
          Get the name of the clone.
 float getPosition()
          Get the position of the clone.
 void setAceObject(jade.db.AceObject o)
          The the wrapped AceObject for this clone.
 void setContig(Contig ctg)
          Set the contig this clone belongs to.
 void setError(float err)
          Do nothing
 void setMapRange(MapRange r)
          Set the MapRange of the clone.
 void setName(java.lang.String name)
          Set the name of the clone.
 void setPMap(MapRange r)
          Set the PMap of the clone if any.
 void setPosition(float position)
          Set the position of the clone.
 java.lang.String toString()
          A overrode method for pretty-printing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Clone

public Clone()
Creates new Clone

Clone

public Clone(java.lang.String n)
Another constructor with name as a argument

Clone

public Clone(java.lang.String n,
             MapRange r)
Third constructor with name and maprange as arguements

Clone

public Clone(java.lang.String n,
             MapRange r,
             Contig ctg)
Fourth constructor with name, mapRange, and contig
Method Detail

getName

public java.lang.String getName()
Get the name of the clone.
Specified by:
getName in interface MapPoint
Returns:
the name of the clone.

getMapRange

public MapRange getMapRange()
Get the MapRange of the clone.
Returns:
the MapRange of the Clone.

getPosition

public float getPosition()
                  throws UnknownPositionException
Get the position of the clone.
Specified by:
getPosition in interface MapPoint
Returns:
the position of the clone.
Throws:
throw - an unknownPositionException when the position is unknown.

setName

public void setName(java.lang.String name)
Set the name of the clone.
Specified by:
setName in interface MapPoint
Parameters:
name - the name of the clone.

setMapRange

public void setMapRange(MapRange r)
Set the MapRange of the clone.
Parameters:
r - the MapRange of the clone.

setPMap

public void setPMap(MapRange r)
Set the PMap of the clone if any.
Parameters:
r - the PMap of the clone.

setPosition

public void setPosition(float position)
Set the position of the clone.
Specified by:
setPosition in interface MapPoint
Parameters:
position - the position of the clone.

setContig

public void setContig(Contig ctg)
Set the contig this clone belongs to.
Parameters:
ctg - the contig of the clone.

setError

public void setError(float err)
Do nothing
Specified by:
setError in interface MapPoint
Following copied from interface: jadex.swing.map.MapPoint
Parameters:
err - the error of the position

getError

public float getError()
No error data from AceDB
Specified by:
getError in interface MapPoint
Following copied from interface: jadex.swing.map.MapPoint
Returns:
the error of the position of the MapPoint.

setAceObject

public void setAceObject(jade.db.AceObject o)
The the wrapped AceObject for this clone.
Parameters:
o - the wrapped AceObject for this clone.

getAceObject

public jade.db.AceObject getAceObject()
Get the wrapped AceObject for this clone.
Returns:
the wrapped AceObject.

equals

public boolean equals(Clone another)
Comparae if two clones are equal. If their names are the same, they should be the same clones.
Parameters:
another - the compared clone.

toString

public java.lang.String toString()
A overrode method for pretty-printing.
Overrides:
toString in class java.lang.Object
Following copied from class: java.lang.Object
Returns:
a string representation of the object.