public class BOAcomponent
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
BOAcomponent(java.lang.String classname,
ComponentsEnum type)
Variant of the main constructor in which it is assumed that the component
has no parameters.
|
BOAcomponent(java.lang.String classname,
ComponentsEnum type,
java.util.HashMap<java.lang.String,java.math.BigDecimal> values)
Creates a BOA component consisting of the classname of the components,
the type, and the parameters with which the component should be loaded.
|
Modifier and Type | Method and Description |
---|---|
void |
addParameter(java.lang.String name,
java.math.BigDecimal value)
Add a parameter to the set of parameters of this component.
|
java.lang.String |
getClassname() |
java.util.HashMap<java.lang.String,java.math.BigDecimal> |
getFullParameters() |
java.util.Set<BOAparameter> |
getOriginalParameters() |
java.util.HashMap<java.lang.String,java.lang.Double> |
getParameters() |
ComponentsEnum |
getType() |
java.lang.String |
toString() |
public BOAcomponent(java.lang.String classname, ComponentsEnum type, java.util.HashMap<java.lang.String,java.math.BigDecimal> values)
classname
- of the component. Note, this is not checked at all. We now
also accept absolute file path to a .class file.type
- of the component (for example bidding strategy).values
- parameters of the component.public BOAcomponent(java.lang.String classname, ComponentsEnum type)
classname
- of the component. Note, this is not checked at all. We now
also accept absolute file path to a .class file.type
- of the component (for example bidding strategy).public void addParameter(java.lang.String name, java.math.BigDecimal value)
name
- of the parameter.value
- of the parameter.public java.lang.String getClassname()
public ComponentsEnum getType()
public java.util.HashMap<java.lang.String,java.lang.Double> getParameters()
public java.util.HashMap<java.lang.String,java.math.BigDecimal> getFullParameters()
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Set<BOAparameter> getOriginalParameters() throws java.net.MalformedURLException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
java.net.MalformedURLException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException