|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.micropsi.nodenet.DecayCalculator
Central service for decay calculations.
| Constructor Summary | |
DecayCalculator()
|
|
| Method Summary | |
static double |
calculateWeigth(int decayType,
double oldweight,
long steps,
NetEntity entity)
Calculate the new weight of a link. |
static void |
setDecay(DecayIF newDecayCalculator)
Sets the implementation if DecayIF to be used for the calculation of decays. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DecayCalculator()
| Method Detail |
public static double calculateWeigth(int decayType,
double oldweight,
long steps,
NetEntity entity)
decayType - the decay type to be appliedoldweight - the old weight of the linksteps - the steps that passed by since the last calculationentity - the NetEntity where the link originates
public static void setDecay(DecayIF newDecayCalculator)
newDecayCalculator - the decay implementation
|
(c) by Micropsi Project: http://www.cognitive-agents.org | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||