com.compomics.angrypeptide.fun
Class Target

java.lang.Object
  extended by com.compomics.angrypeptide.fun.Target

public class Target
extends Object

This class represents a target

Author:
Marc

Constructor Summary
Target(double position, double value)
          Constructor
 
Method Summary
 void addValue(double increment)
          Increments the value by the given amount
 double getPosition()
          Returns the position of the target
 double getValue()
          Returns the value of the target
 void setPosition(double position)
          Sets the position of the target
 void setValue(double value)
          Sets the value of the target
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Target

public Target(double position,
              double value)
Constructor

Parameters:
position - the position
value - the initial value
Method Detail

getPosition

public double getPosition()
Returns the position of the target

Returns:

setPosition

public void setPosition(double position)
Sets the position of the target

Parameters:
position -

getValue

public double getValue()
Returns the value of the target

Returns:

setValue

public void setValue(double value)
Sets the value of the target

Parameters:
value -

addValue

public void addValue(double increment)
Increments the value by the given amount

Parameters:
increment - the value to add


Copyright © 2013. All Rights Reserved.