trust_system_lib
Class NoneTM

java.lang.Object
  extended by trust_system_lib.NoneTM
All Implemented Interfaces:
TrustAlg

public class NoneTM
extends java.lang.Object
implements TrustAlg

The NoneTM class conforms to the TrustAlg interface and simulates the lack of a TM system. Essentially, random source selection is used.


Constructor Summary
NoneTM(Network nw)
          Construct a NoneTm 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoneTM

public NoneTM(Network nw)
Construct a NoneTm object.

Parameters:
nw - Network which this EtIncTM will be managing
Method Detail

algName

public java.lang.String algName()
Interfaced: Text name of this trust algorithm (spaces are okay).

Specified by:
algName in interface TrustAlg
Returns:
Text name of this trust algorithm (spaces are okay)

fileExtension

public java.lang.String fileExtension()
Interfaced: File extension placed on output files using this algorithm.

Specified by:
fileExtension in interface TrustAlg
Returns:
File extension placed on output files using this algorithm

update

public void update(Transaction trans)
Interfaced: Given coordinates of a feedback commitment, update as needed.

Specified by:
update in interface TrustAlg
Parameters:
trans - Transaction detailing feedback commitment

computeTrust

public void computeTrust(int user,
                         int cycle)
Interfaced: Compute trust, exporting trust values to Network.

Specified by:
computeTrust in interface TrustAlg
Parameters:
user - Identifier of user performing trust computation
cycle - The current cycle