se.liu.ida.critiquer.resources
Class SingleSelectionParameter<T>

java.lang.Object
  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface se.liu.ida.critiquer.resources.ParameterInAgent
ParameterInAgent.Type
 
Constructor Summary
SingleSelectionParameter(AgentParameterName name, Agent agent, Vector<T> range, T defaultObject)
           
 
Method Summary
 void editEnabled(boolean enabled)
           
 boolean equals(Object obj)
           
 JPanel getComponent()
           
 AgentParameterName getName()
           
 ParameterInAgent.Type getType()
           
 T getValue()
           
 void setType(ParameterInAgent.Type type)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleSelectionParameter

public SingleSelectionParameter(AgentParameterName name,
                                Agent agent,
                                Vector<T> range,
                                T defaultObject)
Method Detail

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.