public class ComponentSpecification
extends java.lang.Object
| Constructor and Description |
|---|
ComponentSpecification()
Creates a new specification with undefined main and specific types, and
an empty parameter list.
|
ComponentSpecification(ComponentType mainType)
Creates a new specification with the given main type, an undefined
specific type, and an empty parameter list.
|
ComponentSpecification(ComponentType mainType,
int specificType)
Creates a new specification with the given main and specific types, and
an empty parameter list.
|
ComponentSpecification(ComponentType mainType,
int specificType,
java.lang.String... parameters)
Creates a new specification with the given parameter list and types.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addComponentParameter(java.lang.String parameterToAdd)
Adds the given parameter to the list of parameters stored in this
specification, at the end of the list.
|
java.util.List<java.lang.String> |
getComponentParameters() |
java.lang.String |
getConfigurationString() |
ComponentType |
getMainComponentType() |
int |
getSpecificComponentType() |
void |
setComponentParameters(java.util.List<java.lang.String> newComponentParameters)
Sets the list of parameters stored in this component specification to the
provided list, overwriting all previous parameters.
|
void |
setMainComponentType(ComponentType newComponentType)
Sets the basic component type (packet generator, packet size
distribution, etc) described by this specification to the provided type
identifier.
|
void |
setSpecificComponentType(int specificComponentType)
Sets the specific component type (random, normal, etc) described by this
specification to the provided type identifier.
|
java.lang.String |
toString() |
public ComponentSpecification()
public ComponentSpecification(ComponentType mainType)
mainType - integer which identifies the basic type of component this
specification will describe, such as PacketSizeDistribution or
PacketGenerator; this should be one of the values defined within
ComponentTypepublic ComponentSpecification(ComponentType mainType, int specificType)
mainType - integer identifying the basic type of component, such as
PacketSizeDistribution or PacketGenerator, this component specification
will describe; this should be one of the values defined in ComponentTypespecificType - integer identifying the specific type, such as bursty
or normal, of component that this component specification will describe;
this varies depending upon the main component type, and should be one of
the values defined in PacketGeneratorType, SizeDistributionType, or
TimeDistributionTypepublic ComponentSpecification(ComponentType mainType, int specificType, java.lang.String... parameters)
mainType - integer identifying the basic type of component, such as
or PacketGenerator, this component specification will describe; this
should be one of the values defined in ComponentTypespecificType - integer identifying the specific type, such as bursty
or normal, of component that this component specification will describe;
this varies depending upon the main component type, and should be one of
the values defined in Type, PacketGeneratorType, SizeDistributionType, or
TimeDistributionTypeparameters - the parameters for a component of the given typepublic ComponentType getMainComponentType()
public void setMainComponentType(ComponentType newComponentType)
public int getSpecificComponentType()
public void setSpecificComponentType(int specificComponentType)
public java.util.List<java.lang.String> getComponentParameters()
public void setComponentParameters(java.util.List<java.lang.String> newComponentParameters)
public void addComponentParameter(java.lang.String parameterToAdd)
public java.lang.String getConfigurationString()
public java.lang.String toString()
toString in class java.lang.Object