|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimulator_lib.SimulatorMalicious
public class SimulatorMalicious
The SimulatorMalicious class is used to coordinate malicious user behaviors, especially with regards to coordinated activity and feedback switching.
Nested Class Summary | |
---|---|
static class |
SimulatorMalicious.MAL_STRATEGY
The MAL_STRATEGY enumeration lists malicious tactics that can be used |
Field Summary | |
---|---|
private java.util.List<java.lang.Integer> |
collective
List containing UserID's of those participating in malicious-collective |
private Network |
nw
Network which this SimulatorMalicious object is being applied too. |
private SimulatorMalicious.MAL_STRATEGY |
strat
The malicious strategy being applied by this instance. |
Constructor Summary | |
---|---|
SimulatorMalicious(Network nw,
SimulatorMalicious.MAL_STRATEGY strat)
Construct a SimulatorMalicious object. |
Method Summary | |
---|---|
void |
computeTrust(int recv,
int cycle,
TrustAlg ALG)
Compute trust according to some algorithm, over a set of feedback data. |
private void |
setVecRelations(Relation.Copy setting,
int vec,
TrustAlg ALG)
Set all (user->x) relations in this Network to report a particular feedback type when queried, where 'user' is a fixed User. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final SimulatorMalicious.MAL_STRATEGY strat
private final Network nw
private java.util.List<java.lang.Integer> collective
Constructor Detail |
---|
public SimulatorMalicious(Network nw, SimulatorMalicious.MAL_STRATEGY strat)
nw
- Network over which this Object should operatestrat
- Malicious strategy being applied in this instanceMethod Detail |
---|
public void computeTrust(int recv, int cycle, TrustAlg ALG)
recv
- Identifier of user performing trust computationcycle
- The current cycle in the simulator frameworkALG
- Algorithm being brought to bear on interaction dataprivate void setVecRelations(Relation.Copy setting, int vec, TrustAlg ALG)
setting
- Feedback type which we want to be reportedvec
- User (numerical) vector whose relations are to be set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |