public class ComplexComponentSpecification extends ComponentSpecification
| Constructor and Description |
|---|
ComplexComponentSpecification()
Creates a new complex component specification with undefined types and
empty parameter and base component lists.
|
ComplexComponentSpecification(ComponentType mainType)
Creates a new complex component specification with the provided main
type, undefined specific type, and empty parameter and base component
lists.
|
ComplexComponentSpecification(ComponentType mainType,
int specificType)
Creates a new complex component specification with the provided types and
empty parameter and base component lists.
|
ComplexComponentSpecification(ComponentType mainType,
int specificType,
java.util.List<ComponentSpecification> baseComponents,
java.lang.String... parameters)
Creates a new complex component specification with the provided types,
parameter list, and base component list.
|
ComplexComponentSpecification(ComponentType mainType,
int specificType,
java.lang.String... parameters)
Creates a new complex component specification with the provided types and
parameter list, and an empty base component list.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBaseComponent(ComponentSpecification specificationToAdd)
Adds the provided component specification to the list of base components
for this complex component specification, at the end of the list.
|
java.util.List<ComponentSpecification> |
getBaseComponents() |
java.lang.String |
getConfigurationString() |
void |
setBaseComponents(java.util.List<ComponentSpecification> newBaseComponents)
Sets the list of base components for this complex component specification
to the provided list, overwriting any components which were previously
stored.
|
java.lang.String |
toString() |
addComponentParameter, getComponentParameters, getMainComponentType, getSpecificComponentType, setComponentParameters, setMainComponentType, setSpecificComponentTypepublic ComplexComponentSpecification()
public ComplexComponentSpecification(ComponentType mainType)
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 ComponentTypepublic ComplexComponentSpecification(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 burstypublic ComplexComponentSpecification(ComponentType mainType, int specificType, java.lang.String... parameters)
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
TimeDistributionTypeparameters - a list containing the primitive type parameters for a
component of the given typepublic ComplexComponentSpecification(ComponentType mainType, int specificType, java.util.List<ComponentSpecification> baseComponents, java.lang.String... parameters)
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
TimeDistributionTypeparameters - a list containing the primitive type parameters for a
component of the given typebaseComponents - a list containing component specifications for any
base components needed for a component of this typepublic java.util.List<ComponentSpecification> getBaseComponents()
public void setBaseComponents(java.util.List<ComponentSpecification> newBaseComponents)
public void addBaseComponent(ComponentSpecification specificationToAdd)
public java.lang.String getConfigurationString()
getConfigurationString in class ComponentSpecificationpublic java.lang.String toString()
toString in class ComponentSpecification