|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pandora.sense.BasicSense
public class BasicSense
Defines an external interface. i.e. - text - voice - hearing - vision
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_SPEAKER
Default user if none specified. |
static int |
RETRY
Number of attempt to retry sensory input on failure. |
Constructor Summary | |
---|---|
BasicSense()
|
Method Summary | |
---|---|
void |
awake()
Start sensing. |
EmotionalState |
getEmotionalState()
Return the current conversational mood. |
Language.LanguageState |
getLanguageState()
Return the current conversational state. |
java.lang.String |
getName()
Return the name that identifies the sense. |
Pandora |
getPandora()
Return the associated Pandora instance. |
Primitive |
getPrimitive()
Allows senses to be referenced by memory. |
Network |
getShortTermMemory()
Return the short term memory. |
void |
initialize(java.util.Map<java.lang.String,java.lang.Object> properties)
Initialize any configurable settings from the properties. |
void |
input(java.lang.Object input)
Receive any input from the sense. |
void |
input(java.lang.Object input,
Network network)
Receive any input from the sense. |
boolean |
isEnabled()
Return if the sense is enabled. |
void |
log(java.lang.String message,
java.util.logging.Level level)
Log the message if the debug level is greater or equal to the level. |
void |
log(java.lang.String message,
java.util.logging.Level level,
java.lang.Object... arguments)
Log the message if the debug level is greater or equal to the level. |
void |
log(java.lang.Throwable error)
Log the exception. |
void |
output(Vertex output)
Output the active network to the sense. |
void |
setEmotionalState(EmotionalState emotionalState)
Set the current conversational mood. |
void |
setIsEnabled(boolean isEnabled)
Allow the sense to disabled/enabled. |
void |
setLanguageState(Language.LanguageState languageState)
Set the current conversational state. |
void |
setName(java.lang.String name)
Set the name that identifies the sense. |
void |
setPandora(Pandora pandora)
Set the associated Pandora instance. |
void |
shutdown()
Stop sensing. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int RETRY
public static java.lang.String DEFAULT_SPEAKER
Constructor Detail |
---|
public BasicSense()
Method Detail |
---|
public boolean isEnabled()
isEnabled
in interface Sense
public void setIsEnabled(boolean isEnabled)
setIsEnabled
in interface Sense
public Language.LanguageState getLanguageState()
getLanguageState
in interface Sense
public void setLanguageState(Language.LanguageState languageState)
setLanguageState
in interface Sense
public EmotionalState getEmotionalState()
public void setEmotionalState(EmotionalState emotionalState)
setEmotionalState
in interface Sense
public void awake()
awake
in interface Sense
public void shutdown()
shutdown
in interface Sense
public void input(java.lang.Object input)
input
in interface Sense
public void input(java.lang.Object input, Network network) throws java.lang.Exception
input
in interface Sense
java.lang.Exception
public void output(Vertex output)
output
in interface Sense
public java.lang.String getName()
getName
in interface Sense
public void setName(java.lang.String name)
setName
in interface Sense
public Network getShortTermMemory()
public void log(java.lang.String message, java.util.logging.Level level, java.lang.Object... arguments)
public void log(java.lang.String message, java.util.logging.Level level)
public void log(java.lang.Throwable error)
public Primitive getPrimitive()
Sense
getPrimitive
in interface Sense
public java.lang.String toString()
toString
in class java.lang.Object
public Pandora getPandora()
getPandora
in interface Sense
public void setPandora(Pandora pandora)
setPandora
in interface Sense
public void initialize(java.util.Map<java.lang.String,java.lang.Object> properties)
initialize
in interface Sense
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |