public class XMLUtilities extends Object
Modifier and Type | Field and Description |
---|---|
static String |
AGENT
The name of a node containing a launch configuration: "Agent"
|
static String |
ATTRIBUTES
The name of the child node of
AGENT containing
attributes that have to be set on the agent: "Attributes" |
static String |
BUCKET_MODE
Valid attribute of an agent node determining if the launch
should be done using the bucket mode.
|
static String |
BUCKET_MODE_ROLE
The name of the child node of
AGENT containing
the roles which should be set when using the bucket mode. |
static String |
CLASS
Valid attribute of an agent node determining the agent
class to launch, value is "class"
|
static String |
GUI
Valid attribute of an agent node : "GUI" in a MDK xml config file
|
static String |
LOG_LEVEL
Valid attribute of an agent node determining the agent
log level to be set, the name of the attribute is "logLevel"
|
static String |
MADKIT_PROPERTIES
The name of a node containing properties for MaDKit : "MadkitProperties"
|
static String |
MDK
Name of the root node of MaDKit xml fles, value is "MDK"
|
static String |
NB_OF_INSTANCES
Valid attribute of an agent node : "nbOfInstances" in a MDK xml config file
|
Constructor and Description |
---|
XMLUtilities() |
public static final String NB_OF_INSTANCES
public static final String GUI
public static final String ATTRIBUTES
AGENT
containing
attributes that have to be set on the agent: "Attributes"public static final String CLASS
public static final String AGENT
public static final String MADKIT_PROPERTIES
public static final String LOG_LEVEL
public static final String MDK
public static final String BUCKET_MODE
see<Agent class="madkit.xml.XMLBenchTestAgent" nbOfInstances="100000" bucketMode="true"> <Attributes speed="3" i="5" s="blabla"/> </Agent>
If theBUCKET_MODE_ROLE
tag is used, bucketMode is automatically added and set totrue
.
AbstractAgent.launchAgentBucket(java.util.List, int, String...)
public static final String BUCKET_MODE_ROLE
AGENT
containing
the roles which should be set when using the bucket mode.
e.g.
<Agent class="madkit.xml.XMLBenchTestAgent" nbOfInstances="100000" bucketMode="true">
<Attributes speed="3" i="5" s="blabla"/>
<bucketModeRole community="Tcommunity" group="Tgroup" role="Trole"/>
</Agent>
public static Document getDOM(String xmlFile) throws SAXException, IOException, ParserConfigurationException
xmlFile
- null
if not found or invalidSAXException
IOException
ParserConfigurationException
Fabien Michel, Olivier Gutknecht, Jacques Ferber