Creation date: 31/10/2007
- Author:
- Gaƫl Monfort (monfort@run.montefiore.ulg.ac.be)
Field Summary |
protected java.util.HashMap<java.lang.String,java.lang.String> |
parameters
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parameters
protected java.util.HashMap<java.lang.String,java.lang.String> parameters
AbstractTopologyGenerator
protected AbstractTopologyGenerator()
setParam
public void setParam(java.lang.String name,
java.lang.String value)
throws InvalidParameterException
- Description copied from interface:
TopologyGenerator
- set user parameters.
- Specified by:
setParam
in interface TopologyGenerator
- Parameters:
name
- name of the parameter.value
- value of the parameter.
- Throws:
InvalidParameterException
- If the parameter is invalid.
getParam
public java.lang.String getParam(java.lang.String name)
throws InvalidParameterException
- Description copied from interface:
TopologyGenerator
- get the value of the specified parameter.
- Specified by:
getParam
in interface TopologyGenerator
- Parameters:
name
- name of the parameter.
- Returns:
- the value of the parameter.
- Throws:
InvalidParameterException
- If the parameter is invalid.
findParam
protected ParameterDescriptor findParam(java.lang.String name)
getIntegerParameter
protected int getIntegerParameter(java.lang.String name)
throws InvalidParameterException
- Throws:
InvalidParameterException
getDoubleParameter
protected double getDoubleParameter(java.lang.String name)
throws InvalidParameterException
- Throws:
InvalidParameterException
getStringParameter
protected java.lang.String getStringParameter(java.lang.String name)
throws InvalidParameterException
- Throws:
InvalidParameterException
getFloatParameter
protected float getFloatParameter(java.lang.String name)
throws InvalidParameterException
- Throws:
InvalidParameterException
getBooleanParameter
protected boolean getBooleanParameter(java.lang.String name)
throws InvalidParameterException
- Throws:
InvalidParameterException
getAvailableParameters
public java.util.List<ParameterDescriptor> getAvailableParameters()
- Description copied from interface:
TopologyGenerator
- Returns a list of parameters that can be used with the generator
- Specified by:
getAvailableParameters
in interface TopologyGenerator
- Returns:
Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.