|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttrust_system_lib.EigenTM
trust_system_lib.EtIncTM
public class EtIncTM
The EtIncTM class conforms to the TrustAlg interface and is nearly identical to the implementation of EigenTM. The difference is this version uses snapshot comparisons to avoid costly recalculation on every cycle.
Field Summary | |
---|---|
private int |
cur_skip
Number of cycles to skip between each trust re-calculation. |
private double[] |
current
Matrix storing trust values after the *previous* trust calculation. |
private double[] |
previous
Matrix storing trust values after the *previous* trust calculation. |
Fields inherited from class trust_system_lib.EigenTM |
---|
nw |
Constructor Summary | |
---|---|
EtIncTM(Network nw)
Construct an EtIncTM object. |
Method Summary | |
---|---|
java.lang.String |
algName()
Interfaced: Text name of this trust algorithm (spaces are okay). |
void |
computeTrust(int user,
int cycle)
Interfaced: Compute trust, exporting trust values to Network. |
java.lang.String |
fileExtension()
Interfaced: File extension placed on output files using this algorithm. |
void |
update(Transaction trans)
Interfaced: Given coordinates of a feedback commitment, update as needed. |
Methods inherited from class trust_system_lib.EigenTM |
---|
hasConverged, trustMultiply |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int cur_skip
private double[] current
private double[] previous
Constructor Detail |
---|
public EtIncTM(Network nw)
nw
- Network which this EtIncTM will be managingMethod Detail |
---|
public java.lang.String algName()
algName
in interface TrustAlg
algName
in class EigenTM
public java.lang.String fileExtension()
fileExtension
in interface TrustAlg
fileExtension
in class EigenTM
public void update(Transaction trans)
update
in interface TrustAlg
update
in class EigenTM
trans
- Transaction detailing feedback commitmentpublic void computeTrust(int user, int cycle)
computeTrust
in interface TrustAlg
computeTrust
in class EigenTM
user
- Identifier of user performing trust computationcycle
- The current cycle
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |