Class TAXO::Ingredient
In: icw_taxo.rb
Parent: Object

Methods

Public Class methods

Ingredient.attributes

(({TAXO::Ingredient.attributes})) is an an auxiliary methode as well and allows in fact accessiing all attributes of the Ingredient.

Ingredient.printVector(vector)

(({TAXO::Ingredient.printVector(vector)})) is basically an auxiliary methode, which by printing out atributtes of the Ingredient helps to control assigned values.

Public Instance methods

clearAttributes()

(({TAXO ::clearAttributes})) clears vector values (stored into the class variables defined above) and weight them with the factor of 0.1.

getClass(filename, ingredient)

(({TAXO::getClass(filename, ingredient)})) takes the ingredient name as well as the file name where taxonomy is stored and searchs for the according class of the ingredient. Was the search successfull true will be returned.

getClassVector(ingredient)

(({TAXO::getClassVector(ingredient)})) takes an ingredient (basically a string), looks what class it belongs to and returns the acording attribute vector.

returnVector()

(({TAXO::returnVector})) returns weighted vector.

[Validate]