#include <Fragment.h>
Public Methods | |
Fragment (void) | |
virtual | ~Fragment () |
void | initialise (void) |
void | incrementOccurenceCount (void) |
void | decreaseOccurenceCount (void) |
void | resetOccurenceCount (void) |
int | getFragmentId (void) const |
void | setFragmentId (int p_id) |
std::string | getReferenceFragmentId (void) const |
void | setReferenceFragmentId (std::string p_id) |
const std::vector< double > & | getProperties (void) const |
unsigned int | getNbrProperties (void) const |
void | setProperties (std::vector< double > &p_properties) |
void | addProperty (double p_property) |
std::string | getLibraryName (void) const |
void | setLibraryName (std::string p_Name) |
unsigned long int | getOccurenceCount (void) const |
void | addGoodness (const float p_goodness) |
float | getGoodness (void) const |
void | resetGoodness (void) |
|
Default Constructor. |
|
Destructor |
|
Instead of integer counter, this class allow to use floating point goodness. Each time this method is called, the internal goodness is added to the parameter passed. |
|
Instead of creating the list in one shot (like setProperties method), it allows to add one by one a property. This method does not clear the intermal property list. |
|
Decrease by one the internal counter. |
|
Getter method for an integer Id. |
|
Returns the goodness. |
|
Returns the Library Name to which this fragment object can be associated for a bidirectional associative relationship. |
|
Returns the number of properties attached to this fragment. This is the size of the property list returned by the method getProperties() |
|
Returns the internal counter value. |
|
Returns the list of properties associated to this fragment. |
|
Getter for a text based Id. |
|
Increment by one the internal counter. It can be used to count the number of times a reagent is part of a 'good' product. |
|
Initialise the state of the object. |
|
Reset to 0.0 the internal goodness. |
|
Reset to zero the internal counter. |
|
Setter method for an integer Id. |
|
Set the Library name (linked to Library class) to which this fragment object can be associated for a bidirectional associative relationship. |
|
Clear the internal property list and reassign it to the list given as parameter. |
|
Setter for a text based Id. |