edu.memphis.ccrg.lida.framework.shared.activation
Interface Desirable

All Known Subinterfaces:
RootableNode
All Known Implementing Classes:
RootableNodeImpl

public interface Desirable

An object with desirability.

Author:
Ryan J. McCall

Field Summary
static double DEFAULT_DESIRABILITY
          Default desirability for Desirable.
 
Method Summary
 double getDesirability()
          Returns the current desirability of this node.
 double getNetDesirability()
          Gets net desirability
 double getTotalDesirability()
          Returns the total desirability of this Desirable.
 void setDesirability(double d)
          Sets node desirability.
 

Field Detail

DEFAULT_DESIRABILITY

static final double DEFAULT_DESIRABILITY
Default desirability for Desirable.

See Also:
Constant Field Values
Method Detail

getDesirability

double getDesirability()
Returns the current desirability of this node.

Returns:
a double signifying the degree to which this node is desired by the agent

setDesirability

void setDesirability(double d)
Sets node desirability.

Parameters:
d - degree to which this node is desired by the agent

getTotalDesirability

double getTotalDesirability()
Returns the total desirability of this Desirable.

Returns:
The total desirability. It should return the current desirability if no base-level desirability is used.

getNetDesirability

double getNetDesirability()
Gets net desirability

Returns:
the difference between desirability and activation