|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanet.util.Properties
public class Properties
Field Summary | |
---|---|
static java.lang.Class |
appClass
Class of Application implementation. |
static java.lang.Class |
behClass
BehavioursPool's class. |
static java.lang.Class |
behFactoryClass
BehavioursPool's Factory class. |
static java.lang.Class |
behPropertiesClass
Class with all behaviours |
static BehaviourProperties |
behProps
This contains all patterns for all behaviours. |
static int |
bitsKey
Number of bits for Id. |
static java.lang.String |
DEFAULT_APPLICATION
Factories property: The default key specified in the properties file that identifies the class of some Application's implementation. |
static java.lang.String |
DEFAULT_BEHAVIOUR_PROPERTIES
Simulator property: Default key for the Behaviour properties class. |
static java.lang.String |
DEFAULT_BEHCLASS
Factories property: The default Class for BehavioursPools specified in the properteis file. |
static java.lang.String |
DEFAULT_BEHFACTORY
Factories property: The default BehavioursPoolFactory key specified in the properties file. |
static java.lang.String |
DEFAULT_BITS_KEY
Factories property: Default key at properties file that identifies the number of bits of the key. |
static java.lang.String |
DEFAULT_DHT_APP_PROPERTIES
Default file which contains the default properties for the DHT application layer. |
static java.lang.String |
DEFAULT_DHT_PROPERTIES
Simulator property: Default key for the DHT properties class. |
static java.lang.String |
DEFAULT_END_POINT
Factories property: Default key at properties file that identifies the class for new EndPoints. |
static java.lang.String |
DEFAULT_EVENT_FILE
Simulator property: Default key for filename with events to load. |
static java.lang.String |
DEFAULT_FACTORY_PROPERTIES
Default file which contains the default properties for the factories. |
static java.lang.String |
DEFAULT_GML_PROPERTIES
Simulator property: Default key for the graphical GML properties class. |
static java.lang.String |
DEFAULT_ID_CLASS
Factories property: The default Class for Ids specified in the properties file. |
static java.lang.String |
DEFAULT_IDFACTORY
Factories property: The default IdFactory key specified in the properties file. |
static java.lang.String |
DEFAULT_KBR_PROPERTIES
Default file which contains the default properties for the Chord protocol. |
static java.lang.String |
DEFAULT_LOG_LEVEL
Simulator property: Default key for log level. |
static java.lang.String |
DEFAULT_MSG_PROCESS
Kbr property: Default key for message processig. |
static java.lang.String |
DEFAULT_NETWORK
Factories property: The default key specified in the properties file that identifies the class of the network implementation to use. |
static java.lang.String |
DEFAULT_NETWORK_SIZE
Factories property: Default key at properties file that identifies the network size. |
static java.lang.String |
DEFAULT_NODE_FACTORY
Factories property: Default key at properties file that identifies the NodeFactory. |
static java.lang.String |
DEFAULT_NODECLASS
Factories property: The default Class for Nodes specified in the properties file. |
static java.lang.String |
DEFAULT_NODEHANDLECLASS
Factories property: The default Class for NodeHandles specified in the properties file. |
static java.lang.String |
DEFAULT_OUTPUT_FILE
Simulator property: Default key for filename to which serialize the final state. |
static java.lang.String |
DEFAULT_OVERLAY_PROPERTIES
Simulator property: Default key for the overlay properties class. |
static java.lang.String |
DEFAULT_QUEUE_SIZE
Kbr property: Default key for queue size. |
static java.lang.String |
DEFAULT_REPLACE_OUTPUT_FILE
Simulator property: Default key to show if the output file must be replaced with new outputs. |
static java.lang.String |
DEFAULT_ROUTE_MESSAGE
Factories property: Default key at properties file that identifies the class for new RouteMessage. |
static java.lang.String |
DEFAULT_SERIALIZED_FILE
Factories property: Default key at properties file that identifies the serialized file that contains the state to load. |
static java.lang.String |
DEFAULT_SIM_PROPERTIES
Default file which contains the default properties for the simulator. |
static java.lang.String |
DEFAULT_SIMULATION_STEPS
Simulator property: Default key for number of stabilization steps for any node join or leave. |
static java.lang.String |
DEFAULT_TIMER
Simulator property: Default key for Timer class to use at nodes. |
static java.lang.String |
DEFAULT_TOPOLOGY
Factories property: Default key at properties file that identifies the topology of the network. |
static java.lang.Class |
dhtPropertiesClass
Class with all dht properties. |
static DHTProperties |
dhtProps
This contains all properties for the concrete dht. |
static java.lang.Class |
endPoint
Implementation of EndPoint interface. |
static java.lang.String |
eventFile
Filename to use to load events to the simulator. |
static java.lang.String |
gmlClassesProperties
Usable instance of the GMLFactory in use. |
static PropertiesInitializer |
gmlProps
Have all graphical properties for GML purposes. |
static java.lang.Class |
gmlPropsClass
Implementation class for the graphical attributes on GML graphs. |
static java.lang.Class |
idClass
Id class. |
static java.lang.Class |
idFactory
IdFactory implementation class. |
static int |
logLevel
Log level during simulation.. |
static int |
msgProcess
Message processing. |
static java.lang.Class |
networkClass
Class of Network implementation. |
static int |
networkSize
Network size to build. |
static java.lang.Class |
nodeClass
Node implementation class. |
static java.lang.Class |
nodeFactClass
NodeFactory implementation class. |
static java.lang.Class |
nodeHandleClass
NodeHandle implementation class. |
static java.lang.String |
outputFile
Filename to use to save the actual state by serialization. |
static java.lang.Class |
overlayPropertiesClass
Class with all overlay properties. |
static OverlayProperties |
overlayProps
This contains all properties for the concrete overlay. |
static int |
queueSize
Size of message queues. |
static boolean |
replaceOutputFile
Flag to show if the output file must be replaced or not. |
static java.lang.Class |
routeMessage
Class that implements RouteMessage interface. |
static java.lang.String |
serializedFile
Filename to use to load some serialized state. |
static int |
simulationSteps
Number of steps to be runned after any node join or leave. |
static java.lang.Class |
timerClass
Class to use for Timers at nodes. |
static java.lang.String |
topology
Topology of the target network. |
Constructor Summary | |
---|---|
Properties()
|
Method Summary | |
---|---|
static void |
init(java.lang.String factoryProperties,
java.lang.String simProperties,
java.lang.String overlayProperties)
Load all properties for factories, simulator and chord, from the specified files, respectively. |
static void |
init(java.lang.String factoryProperties,
java.lang.String simProperties,
java.lang.String overlayProperties,
java.lang.String behProperties)
Load all properties for factories, simulator, overlay, DHT from the specified files, respectively. |
static void |
init(java.lang.String factoryProperties,
java.lang.String simProperties,
java.lang.String overlayProperties,
java.lang.String behProperties,
java.lang.String dhtProperties)
Load all properties for factories, simulator, overlay, DHT from the specified files, respectively. |
static void |
initFactories(java.lang.String filename)
Initializa all attributes for factories. |
static void |
initSimulator(java.lang.String filename)
Load all properties for the simulator. |
static void |
initWithGML(java.lang.String factoryProperties,
java.lang.String simProperties,
java.lang.String overlayProperties,
java.lang.String gmlProperties,
java.lang.String gmlClassesProperties)
Load all properties for factories, simulator and chord, from the specified files, respectively. |
static void |
initWithGML(java.lang.String factoryProperties,
java.lang.String simProperties,
java.lang.String overlayProperties,
java.lang.String behProperties,
java.lang.String gmlProperties,
java.lang.String gmlClassesProperties)
Load all properties for factories, simulator, overlay, DHT from the specified files, respectively. |
static void |
initWithGML(java.lang.String factoryProperties,
java.lang.String simProperties,
java.lang.String overlayProperties,
java.lang.String behProperties,
java.lang.String dhtProperties,
java.lang.String gmlProperties,
java.lang.String gmlClassesProperties)
Load all properties for factories, simulator, overlay, DHT from the specified files, respectively. |
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 DEFAULT_FACTORY_PROPERTIES
public static final java.lang.String DEFAULT_SIM_PROPERTIES
public static final java.lang.String DEFAULT_KBR_PROPERTIES
public static final java.lang.String DEFAULT_DHT_APP_PROPERTIES
public static final java.lang.String DEFAULT_NETWORK
public static final java.lang.String DEFAULT_APPLICATION
public static final java.lang.String DEFAULT_ID_CLASS
public static final java.lang.String DEFAULT_IDFACTORY
public static final java.lang.String DEFAULT_BEHCLASS
public static final java.lang.String DEFAULT_BEHFACTORY
public static final java.lang.String DEFAULT_NODECLASS
public static final java.lang.String DEFAULT_NODEHANDLECLASS
public static final java.lang.String DEFAULT_NODE_FACTORY
public static final java.lang.String DEFAULT_NETWORK_SIZE
public static final java.lang.String DEFAULT_BITS_KEY
public static final java.lang.String DEFAULT_SERIALIZED_FILE
public static final java.lang.String DEFAULT_TOPOLOGY
public static final java.lang.String DEFAULT_ROUTE_MESSAGE
public static final java.lang.String DEFAULT_END_POINT
public static final java.lang.String DEFAULT_EVENT_FILE
public static final java.lang.String DEFAULT_SIMULATION_STEPS
public static final java.lang.String DEFAULT_LOG_LEVEL
public static final java.lang.String DEFAULT_OUTPUT_FILE
public static final java.lang.String DEFAULT_REPLACE_OUTPUT_FILE
public static final java.lang.String DEFAULT_TIMER
public static final java.lang.String DEFAULT_OVERLAY_PROPERTIES
public static final java.lang.String DEFAULT_QUEUE_SIZE
public static final java.lang.String DEFAULT_MSG_PROCESS
public static final java.lang.String DEFAULT_DHT_PROPERTIES
public static final java.lang.String DEFAULT_BEHAVIOUR_PROPERTIES
public static final java.lang.String DEFAULT_GML_PROPERTIES
public static DHTProperties dhtProps
public static java.lang.Class dhtPropertiesClass
public static BehaviourProperties behProps
public static java.lang.Class behPropertiesClass
public static java.lang.Class networkClass
public static java.lang.Class appClass
public static java.lang.String topology
public static java.lang.Class idClass
public static java.lang.Class behClass
public static int networkSize
public static java.lang.Class nodeFactClass
public static java.lang.Class idFactory
public static java.lang.Class behFactoryClass
public static java.lang.Class nodeClass
public static java.lang.Class nodeHandleClass
public static int bitsKey
public static java.lang.String serializedFile
public static java.lang.Class routeMessage
public static java.lang.Class endPoint
public static java.lang.String eventFile
public static int simulationSteps
public static int logLevel
public static java.lang.String outputFile
public static boolean replaceOutputFile
public static java.lang.Class timerClass
public static java.lang.Class overlayPropertiesClass
public static int queueSize
public static int msgProcess
public static OverlayProperties overlayProps
public static PropertiesInitializer gmlProps
public static java.lang.Class gmlPropsClass
public static java.lang.String gmlClassesProperties
Constructor Detail |
---|
public Properties()
Method Detail |
---|
public static void init(java.lang.String factoryProperties, java.lang.String simProperties, java.lang.String overlayProperties) throws InitializationException
factoryProperties
- File that contains the factories properties.simProperties
- File that contains the simulator properties.overlayProperties
- File that contains the overlay properties.
InitializationException
- if some error occur during initialization.public static void init(java.lang.String factoryProperties, java.lang.String simProperties, java.lang.String overlayProperties, java.lang.String behProperties) throws InitializationException
factoryProperties
- File that contains the factories properties.simProperties
- File that contains the simulator properties.overlayProperties
- File that contains the overlay properties.behProperties
- File that contains all behaviours
InitializationException
- if some error occur during initialization.public static void init(java.lang.String factoryProperties, java.lang.String simProperties, java.lang.String overlayProperties, java.lang.String behProperties, java.lang.String dhtProperties) throws InitializationException
factoryProperties
- File that contains the factories properties.simProperties
- File that contains the simulator properties.overlayProperties
- File that contains the overlay properties.dhtProperties
- File that contains the DHT properties.
InitializationException
- if some error occur during initialization.public static void initWithGML(java.lang.String factoryProperties, java.lang.String simProperties, java.lang.String overlayProperties, java.lang.String gmlProperties, java.lang.String gmlClassesProperties) throws InitializationException
factoryProperties
- File that contains the factories properties.simProperties
- File that contains the simulator properties.overlayProperties
- File that contains the overlay properties.gmlProperties
- File that contains the graphical GML properties.gmlClassesProperties
- File that contains the implementations classes for GML graphs.
InitializationException
- if some error occur during initialization.public static void initWithGML(java.lang.String factoryProperties, java.lang.String simProperties, java.lang.String overlayProperties, java.lang.String behProperties, java.lang.String gmlProperties, java.lang.String gmlClassesProperties) throws InitializationException
factoryProperties
- File that contains the factories properties.simProperties
- File that contains the simulator properties.overlayProperties
- File that contains the overlay properties.behProperties
- File that contains all behavioursgmlProperties
- File that contains the graphical GML properties.gmlClassesProperties
- File that contains the implementations classes for GML graphs.
InitializationException
- if some error occur during initialization.public static void initWithGML(java.lang.String factoryProperties, java.lang.String simProperties, java.lang.String overlayProperties, java.lang.String behProperties, java.lang.String dhtProperties, java.lang.String gmlProperties, java.lang.String gmlClassesProperties) throws InitializationException
factoryProperties
- File that contains the factories properties.simProperties
- File that contains the simulator properties.overlayProperties
- File that contains the overlay properties.dhtProperties
- File that contains the DHT properties.gmlProperties
- File that contains the graphical GML properties.gmlClassesProperties
- File that contains the implementations classes for GML graphs.
InitializationException
- if some error occur during initialization.public static void initFactories(java.lang.String filename) throws InitializationException
filename
- File which contains all properties for the factories.
InitializationException
- if occur some error during initialization.public static void initSimulator(java.lang.String filename) throws InitializationException
filename
- File that contains all properties for simulator.
InitializationException
- if occur some error during initialization.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |