org.pandora.sense
Class BasicAwareness

java.lang.Object
  extended by org.pandora.sense.BasicAwareness
All Implemented Interfaces:
Awareness

public class BasicAwareness
extends java.lang.Object
implements Awareness

Controls and manages the senses.


Constructor Summary
BasicAwareness()
           
 
Method Summary
 void addSense(Sense sense)
           
 void awake()
           
 Pandora getPandora()
          Return Pandora.
<T> T
getSense(java.lang.Class<T> type)
           
 Sense getSense(java.lang.String senseName)
          Return the sense with the name.
 java.util.Map<java.lang.String,Sense> getSenses()
           
 void initialize(java.util.Map<java.lang.String,java.lang.Object> properties)
          Initialize any configurable settings from the properties.
 void output(Vertex output)
          Allow the sense to output the response.
 void removeSense(Sense sense)
           
 void setPandora(Pandora pandora)
          Set Pandora.
 void shutdown()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicAwareness

public BasicAwareness()
Method Detail

getPandora

public Pandora getPandora()
Return Pandora.

Specified by:
getPandora in interface Awareness

setPandora

public void setPandora(Pandora pandora)
Set Pandora.

Specified by:
setPandora in interface Awareness

initialize

public void initialize(java.util.Map<java.lang.String,java.lang.Object> properties)
Initialize any configurable settings from the properties.

Specified by:
initialize in interface Awareness

shutdown

public void shutdown()
Specified by:
shutdown in interface Awareness

awake

public void awake()
Specified by:
awake in interface Awareness

getSenses

public java.util.Map<java.lang.String,Sense> getSenses()
Specified by:
getSenses in interface Awareness

getSense

public <T> T getSense(java.lang.Class<T> type)
Specified by:
getSense in interface Awareness

getSense

public Sense getSense(java.lang.String senseName)
Description copied from interface: Awareness
Return the sense with the name.

Specified by:
getSense in interface Awareness

addSense

public void addSense(Sense sense)
Specified by:
addSense in interface Awareness

removeSense

public void removeSense(Sense sense)
Specified by:
removeSense in interface Awareness

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

output

public void output(Vertex output)
Allow the sense to output the response.

Specified by:
output in interface Awareness