public class BOAcomponent
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
BOAcomponent(java.lang.String classname,
BoaType type)
Variant of the main constructor in which it is assumed that the component
has no parameters.
|
BOAcomponent(java.lang.String classname,
BoaType type,
java.util.HashMap<java.lang.String,java.lang.Double> 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.lang.Double value)
Add a parameter to the set of parameters of this component.
|
java.lang.String |
getClassname() |
java.util.HashMap<java.lang.String,java.lang.Double> |
getFullParameters() |
java.util.Set<BOAparameter> |
getOriginalParameters() |
java.util.HashMap<java.lang.String,java.lang.Double> |
getParameters() |
BoaType |
getType() |
java.lang.String |
toString() |
public BOAcomponent(java.lang.String classname,
BoaType type,
java.util.HashMap<java.lang.String,java.lang.Double> 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,
BoaType 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.lang.Double value)
name - of the parameter.value - of the parameter.public java.lang.String getClassname()
public BoaType getType()
public java.util.HashMap<java.lang.String,java.lang.Double> getParameters()
public java.util.HashMap<java.lang.String,java.lang.Double> getFullParameters()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Set<BOAparameter> getOriginalParameters() throws InstantiateException
InstantiateException - if repitem can't be loaded