org.pandora.avatar
Class BasicAvatar

java.lang.Object
  extended by org.pandora.avatar.BasicAvatar
All Implemented Interfaces:
Avatar
Direct Known Subclasses:
ImageAvatar

public class BasicAvatar
extends java.lang.Object
implements Avatar

Controls and manages the thought processing.


Constructor Summary
BasicAvatar()
           
 
Method Summary
 void awake()
           
 void emote(EmotionalState state)
          Output the emotional state to the Avatar.
 void evaluate(Vertex output)
          Evaluate the output for emotional expression.
 java.awt.Image getCurrentImage()
           
 Pandora getPandora()
          Return Pandora.
 void initialize(java.util.Map<java.lang.String,java.lang.Object> properties)
          Initialize any configurable settings from the properties.
 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 exception)
          Log the exception.
 void setPandora(Pandora pandora)
          Set Pandora.
 void shutdown()
           
 java.lang.String toString()
          Print a useful string representation of the avatar.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicAvatar

public BasicAvatar()
Method Detail

log

public 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.


log

public void log(java.lang.Throwable exception)
Log the exception.


getPandora

public Pandora getPandora()
Return Pandora.

Specified by:
getPandora in interface Avatar

setPandora

public void setPandora(Pandora pandora)
Set Pandora.

Specified by:
setPandora in interface Avatar

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 Avatar

shutdown

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

awake

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

evaluate

public void evaluate(Vertex output)
Evaluate the output for emotional expression.

Specified by:
evaluate in interface Avatar

emote

public void emote(EmotionalState state)
Output the emotional state to the Avatar.


getCurrentImage

public java.awt.Image getCurrentImage()
Specified by:
getCurrentImage in interface Avatar

toString

public java.lang.String toString()
Print a useful string representation of the avatar.

Overrides:
toString in class java.lang.Object