|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttrust_system_lib.TnaSlTM
public class TnaSlTM
The TnaSlTM class conforms to the TrustAlg interface and implements the 'Trust Network Analysis with Subjective Logic' approach of Josang et. al.
Field Summary | |
---|---|
private Opinion[][] |
matrixA
Scratch space matrix for multiplication purposes. |
private Opinion[][] |
matrixB
Scratch space matrix for multiplication purposes. |
private Opinion[][] |
max_matrix
Matrix storing max-confidence Opinions seen during multiplication. |
private Network |
nw
The Network which this EigenTM is managing. |
private Opinion[][] |
op_stor
Matrix storing persistent Opinion objects for each relation. |
Constructor Summary | |
---|---|
TnaSlTM(Network nw)
Construct a TnaSlTM 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. |
private Opinion[][] |
subj_square(Opinion[][] source)
Complete a single multiplication per the TNA-SL specification. |
void |
update(Transaction trans)
Interfaced: Given coordinates of a feedback commitment, update as needed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Network nw
private Opinion[][] op_stor
private Opinion[][] max_matrix
private Opinion[][] matrixA
private Opinion[][] matrixB
Constructor Detail |
---|
public TnaSlTM(Network nw)
nw
- Network which this EtIncTM will be managingMethod Detail |
---|
public java.lang.String algName()
algName
in interface TrustAlg
public java.lang.String fileExtension()
fileExtension
in interface TrustAlg
public void update(Transaction trans)
update
in interface TrustAlg
trans
- Transaction detailing feedback commitmentpublic void computeTrust(int user, int cycle)
computeTrust
in interface TrustAlg
user
- Identifier of user performing trust computationcycle
- The current cycleprivate Opinion[][] subj_square(Opinion[][] source)
source
- The Opinion matrix which is to be squared
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |