My Project
|
Public Member Functions | |
KnowledgeBase (double maxE) | |
boolean | isThereField (KnowledgeField kf) |
int | howManyOfThisBEI (long BEI_ID) |
int | getNumFields () |
double | getExpertise (KnowledgeField kf) |
double | getLowestExpertise () |
KnowledgeField | getKFwithLowestExpertise () |
double | getAverageExpertise () |
double | getHighestExpertise () |
KnowledgeField | getKFwithHighestExpertise () |
Set< Map.Entry< KnowledgeField, ExpertiseData > > | getKnowledge () |
void | tuneFieldExpertise (KnowledgeField kf, double fraction) |
void | setField (KnowledgeField kf, double d) |
void | removeField (KnowledgeField kf) |
void | removeAllFields () |
Set< KnowledgeField > | fields () |
Object | clone () |
double | getMaxExpertise () |
Protected Member Functions | |
void | accountForDistance (double dC) |
Protected Attributes | |
double | maxExpertise |
The maximum expertise allowed. | |
Private Attributes | |
HashMap< KnowledgeField, ExpertiseData > | knowledge |
Contains knowledge fields and their depths.
|
inline |
maxE |
|
inlineprotected |
Takes account of the effect of distance on expertise. The expertise of all fields are multiplied by a distance coefficient.
dC |
|
inline |
Makes a copy of this knowledge base.
|
inline |
Returns all knowledge fields.
|
inline |
|
inline |
Gets an expertise value. If the field is not there, it returns zero.
kf |
|
inline |
|
inline |
|
inline |
|
inline |
Returns the whole knowledge base.
|
inline |
Get the lowest, the average and the highest expertise. Get the knowledge field with lowest expertise and the knowledge field with highest expertise.
|
inline |
Yields the maxExpertise that has received as parameter.
|
inline |
Returns the number of fields.
|
inline |
Checks how many replicas of a specific BEI are in this knowledge base.
BEI_ID |
|
inline |
Checks whether a specific knowledge field is there. It must check BEIs because it is eventually invoked before KFs' IDs have been fixed. (by Firm, at knowledge initialization)
kf |
|
inline |
Removes all instances of all knowledge fields.
|
inline |
Removes just one instance of one knowledge field.
kf |
|
inline |
Adds a new knowledge field with its expertise, or resets the expertise of an existing one. The greatest expertise ever attained is reset as well.
kf | |
d |
|
inline |
Tunes the expertise of a knowledge field by increasing or decreasing it by an amount which is a fraction of the maximum expertise ever attained by that field.
kf | |
fraction |
|
private |
A firm's knowledge is made of items composed by a knowledge field, its current expertise, and the maximum expertise it ever attained. It is organized as a hashmap with Key: KnowledgeField, and Value: ExpertiseData, where ExpertiseData is composed of current expertise and the maximum expertise ever attained.