se.liu.ida.critiquer.resources
Class SingleSelectionParameter<T>
java.lang.Object
se.liu.ida.critiquer.resources.SingleSelectionParameter<T>
- All Implemented Interfaces:
- Serializable, ParameterInAgent<T>
public class SingleSelectionParameter<T>
- extends Object
- implements Serializable, ParameterInAgent<T>
This class
- See Also:
- Serialized Form
SingleSelectionParameter
public SingleSelectionParameter(AgentParameterName name,
Agent agent,
Vector<T> range,
T defaultObject)
editEnabled
public void editEnabled(boolean enabled)
getComponent
public JPanel getComponent()
- Specified by:
getComponent
in interface ParameterInAgent<T>
- Returns:
- Returns the component.
getValue
public T getValue()
- Specified by:
getValue
in interface ParameterInAgent<T>
- Returns:
- Returns the value.
getName
public AgentParameterName getName()
- Specified by:
getName
in interface ParameterInAgent<T>
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
getType
public ParameterInAgent.Type getType()
- Specified by:
getType
in interface ParameterInAgent<T>
- Returns:
- Returns the type.
setType
public void setType(ParameterInAgent.Type type)
- Specified by:
setType
in interface ParameterInAgent<T>
- Parameters:
type
- The type to set.