|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanet.generic.commonapi.behaviours.BehavioursPropertiesImpl
This class allows to add new behaviours to bad nodes on the overlay. Each behaviour is binded to the type of message exchanged between nodes. The message are defined by a type and mode field. It also allow the use of the wildcard '*', that means, whatever type if is specified in type's field or either whatever mode if is specified in mode's field. Through the method init(), so that their values are initialized.
Field Summary | |
static java.lang.String |
BEHAVIOUR_CHAIN_MALICIOUS_DISTRIBUTION
Behaviours property: Specifies a chain malicious distribution into the current overlay. |
static int |
BEHAVIOUR_CHAIN_MALICIOUS_DISTRIBUTION_MASK
Behaviours property: Specifies a chain malicious distribution into the current overlay. |
static java.lang.String |
BEHAVIOUR_UNIFORM_MALICIOUS_DISTRIBUTION
Behaviours property: Specifies an uniform malicious distribution into the current overlay. |
static int |
BEHAVIOUR_UNIFORM_MALICIOUS_DISTRIBUTION_MASK
Behaviours property: Specifies an uniform malicious distribution into the current overlay. |
static java.lang.String |
BEHAVIOURS_PROPERTIES_DEBUG
Behaviours property: Default key specified in the properties file that identifies when to show specific debug info for behaviours applying. |
static java.lang.String |
BEHAVIOURS_PROPERTIES_FAULTY_NODES
Behaviours property: Default key specified in the properties file that identifies percentage of faulty nodes. |
static java.lang.String |
BEHAVIOURS_PROPERTIES_INSTANCE
Behaviours property: Default starting string for the keys that identifies concrete instances for the required behaviours. |
static java.lang.String |
BEHAVIOURS_PROPERTIES_MALICIOUS_DISTRIBUTION
Behaviours property: Default key specified in the properties file that identifies distribution of malicious node. |
boolean |
debug
Behaviours property: Identifies when to show specific debug information for behaviours applying. |
int |
faultyNodes
Behaviours property: Identifies percentage [0..100]% of faulty nodes. |
java.lang.String |
maliciousDistribution
Behaviours property: Identifies distribution of malicious node. |
int |
maliciousDistributionAsInt
Behaviours property: Identifies distribution of malicious node. |
java.util.Vector |
patterns
Internal behaviours property: once this instance has been initialized, will contain all specified patterns into the configuration file. |
Constructor Summary | |
BehavioursPropertiesImpl()
|
Method Summary | |
void |
init(PropertiesWrapper properties)
Initialize correctly the configuration properties. |
void |
postinit(PropertiesWrapper properties)
Load all patterns once the simulator context has been initialized. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String BEHAVIOURS_PROPERTIES_FAULTY_NODES
public static final java.lang.String BEHAVIOURS_PROPERTIES_MALICIOUS_DISTRIBUTION
public static final java.lang.String BEHAVIOURS_PROPERTIES_DEBUG
public static final java.lang.String BEHAVIOURS_PROPERTIES_INSTANCE
public int faultyNodes
public java.lang.String maliciousDistribution
public int maliciousDistributionAsInt
public static final java.lang.String BEHAVIOUR_UNIFORM_MALICIOUS_DISTRIBUTION
public static final java.lang.String BEHAVIOUR_CHAIN_MALICIOUS_DISTRIBUTION
public static final int BEHAVIOUR_UNIFORM_MALICIOUS_DISTRIBUTION_MASK
public static final int BEHAVIOUR_CHAIN_MALICIOUS_DISTRIBUTION_MASK
public boolean debug
public java.util.Vector patterns
Constructor Detail |
public BehavioursPropertiesImpl()
Method Detail |
public void init(PropertiesWrapper properties) throws InitializationException
PropertiesInitializer
init
in interface PropertiesInitializer
properties
-
InitializationException
PropertiesInitializer.init(planet.util.PropertiesWrapper)
public void postinit(PropertiesWrapper properties) throws InitializationException
postinit
in interface PropertiesInitializer
properties
- A Properties instance with all required configuration properties.
InitializationException
- if an error occurs during
the initialization of the different properties.PropertiesInitializer.postinit(planet.util.PropertiesWrapper)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |