kea.programs.jPrimrose
Class Target

java.lang.Object
  extended by kea.programs.jPrimrose.Target

public final class Target
extends java.lang.Object

Simple class for holding target record and associated information, for use with FindOligosDialog.

Version:
2.17.
Author:
Kevin Ashelford.

Constructor Summary
Target(kea.database.Record record, boolean selected)
          Creates a new instance of Target.
 
Method Summary
static Target clone(Target target)
          Clones supplied Target object.
 kea.database.Record getRecord()
          Returns target record.
 boolean isSelected()
          Returns true if target record is to be used in oligonucleotide generation.
 void toggleSelection()
          Toggles selection status of target.
 java.lang.String toString()
          Returns string representation of object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Target

public Target(kea.database.Record record,
              boolean selected)
Creates a new instance of Target.

Parameters:
record - Target record object.
selected - If true, record is used to generate oligonucleotides.
Method Detail

clone

public static Target clone(Target target)
Clones supplied Target object. That is, a new Target object with the same Record and selection status is generated.

Parameters:
target - Target object to clone.
Returns:
Clone of original Target object.

getRecord

public kea.database.Record getRecord()
Returns target record.

Returns:
Target record.

isSelected

public boolean isSelected()
Returns true if target record is to be used in oligonucleotide generation.

Returns:
True if record is to be used.

toggleSelection

public void toggleSelection()
Toggles selection status of target.


toString

public java.lang.String toString()
Returns string representation of object.

Overrides:
toString in class java.lang.Object
Returns:
String object.