|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.nist.antd.merlin.util.DefaultDML
The defaultDML is a tool to create default DML configuration for component.
This class was developed at the National Institute of Standards and Technology by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of the United States Code this software is not subject to copyright protection and is in the public domain.
NIST assumes no responsibility whatsoever for its use by other parties, and makes no guarantees, expressed or implied, about its quality, reliability, or any other characteristic.
We would appreciate acknowledgement if the software is used.
NIST ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION AND DISCLAIM ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
| Constructor Summary | |
private |
DefaultDML()
private constructor to avoid instantiation |
| Method Summary | |
static void |
createConfig(com.renesys.raceway.DML.dmlConfig dmlCfg,
java.lang.String str)
Add the DML configuration represented in a String object to the given dmlConfig object. |
private static void |
createConfig(com.renesys.raceway.DML.dmlConfig dmlCfg,
java.util.StringTokenizer strToken)
Add the DML configuration represented in a StringTokenizer object to the given dmlConfig object. |
static com.renesys.raceway.DML.Configuration |
getCentralizedAlgoConfig(java.lang.String name,
java.lang.String use,
java.lang.String option)
Create a configuration for a centralized algorithm |
static com.renesys.raceway.DML.Configuration |
getHostConfiguration(int id)
create a configuration that contains the protocol IP |
static com.renesys.raceway.DML.Configuration |
getLinksConfiguration(Glass net)
Return a configuration object that contains all the links of the net |
static com.renesys.raceway.DML.Configuration |
getOXCConfiguration(int id)
create a configuration that contains OXCSwitch and IP. |
static com.renesys.raceway.DML.Configuration |
getProtocolConfiguration(int id,
java.lang.String name,
java.lang.String use,
java.lang.String option)
Return a configuration that contains the required protocol |
static com.renesys.raceway.DML.Configuration |
getScriptedEventConfiguration(java.lang.String type,
double time,
java.lang.String option)
Return a configuration that contains the scripted event |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
private DefaultDML()
| Method Detail |
public static com.renesys.raceway.DML.Configuration getLinksConfiguration(Glass net)
net - The net that contains the links
public static com.renesys.raceway.DML.Configuration getOXCConfiguration(int id)
id - The id of this OXC or OXCEdgeRouter
public static com.renesys.raceway.DML.Configuration getHostConfiguration(int id)
id - The id of this host
public static com.renesys.raceway.DML.Configuration getCentralizedAlgoConfig(java.lang.String name,
java.lang.String use,
java.lang.String option)
name - The name of the algorithmuse - The class name of the algorithmoption - The optional attributes of this algorithm
public static com.renesys.raceway.DML.Configuration getProtocolConfiguration(int id,
java.lang.String name,
java.lang.String use,
java.lang.String option)
id - The id of this hostname - The name of the protocoluse - The class name of the protocoloption - The optional attributes of this algorithm
public static com.renesys.raceway.DML.Configuration getScriptedEventConfiguration(java.lang.String type,
double time,
java.lang.String option)
type - The event's typetime - The time to fire this eventoption - The attributes other than type and time (like id)
public static void createConfig(com.renesys.raceway.DML.dmlConfig dmlCfg,
java.lang.String str)
throws com.renesys.raceway.DML.dmlException
dmlCfg - The DMLConfiguration where to add the element.str - The string that represents the DML.
com.renesys.raceway.DML.dmlException - if str contains an error.
private static void createConfig(com.renesys.raceway.DML.dmlConfig dmlCfg,
java.util.StringTokenizer strToken)
throws com.renesys.raceway.DML.dmlException
dmlCfg - The DMLConfiguration where to add the element.strToken - The String that contain the information.
com.renesys.raceway.DML.dmlException - if strToken contains an error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||