applications.proxy.graph3dVisualizer
Class Graph3dVisualizer

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--mam.agent.Agent
              |
              +--mam.agent.TransactionalAgent
                    |
                    +--applications.proxy.graph3dVisualizer.Graph3dVisualizer

public class Graph3dVisualizer
extends TransactionalAgent
implements TraitedSoundSystem

Description of the Class

Author:
nideffer
created May 14, 2001

Field Summary
 final static StringBACKGROUND_SOUND_NAME
          Description of the Field
 final static StringDEFAULT_PRESSED_STATE
          Description of the Field
 final static StringDEFAULT_STATE
          Description of the Field
 final static StringGRAPH_3D_VISUALIZER_AUDIO_GROUP_ID
          Description of the Field
 final static RoutingTagGRAPH_3D_VISUALIZER_ROUTING_TAG
          Description of the Field
 private final static StringGRAPH_VISUALIZER_TITLE
           
 final static StringGRAPH3DVISUALIZER_BACKGROUND_SOUNDS_GROUP
          Description of the Field
 (package private) static CategoryLog
           
 private intm_agentCount
           
 private AgentTraitsm_aggregateTraits
           
 (package private) booleanm_dead
           
 private JFramem_frame
           
 ImageCanvasm_imageCanvas
          Description of the Field
 private RoutingTagm_ipAgentRoutingTag
           
 private AgentTraitsm_ipAgentTraits
           
 VisualizationPreferencesm_visualizationPreferences
          Description of the Field
 private LinkedListm_visualizerStateTransitions
           
 final static StringOFF_STATE
           
 final static StringON_STATE
           
 private final static StringVISUALIZATION_PREFERENCES_FILENAME
           

Fields inherited from class mam.agent.TransactionalAgent
m_messageWaiters

Fields inherited from class mam.agent.Agent
AGENT_ACCESS_STATISTICS_TAG_NAME, AGENT_PROPERTIES_TAG_NAME, AGENT_TRAITS_TAG_NAME, ALL_AGENTS_ROUTING_TAG, DEFAULT_TAG_NAME, m_accessStatisticsGroup, m_agentProperties, m_facility, m_incomingMessageQueue, m_shutdown, m_sleepManager, ROLE_TAG_NAME

Fields inherited from class java.lang.Thread
MIN_PRIORITY, NORM_PRIORITY, MAX_PRIORITY

Constructor Summary
Graph3dVisualizer()
          Constructor for the Graph3dVisualizer object
Graph3dVisualizer(VisualizerNodes nodes)
          Constructor for the Graph3dVisualizer object

Method Summary
 voidaddTransition(String state, long duration)
          Adds a feature to the Transition attribute of the Graph3dVisualizer object
 voidfinished(MessageWaiter messageWaiter)
          Description of the Method
 intgetAgentCount()
          Gets the AgentCount attribute of the Graph3dVisualizer object
 AgentTraitsgetAggregateTraits()
          Gets the AggregateTraits attribute of the Graph3dVisualizer object
 protected StringgetCurrentState()
          Gets the CurrentState attribute of the Graph3dVisualizer object
 protected JFramegetFrame()
          Gets the Frame attribute of the Graph3dVisualizer object
 RoutingTaggetIpAgentRoutingTag()
          Gets the IpAgentRoutingTag attribute of the Graph3dVisualizer object
 AgentTraitsgetIpAgentTraits()
          Gets the IpAgentTraits attribute of the Graph3dVisualizer object
 voidhandleDeclareLocationKeywordsMessage(AgentMessage message)
          Description of the Method
 voidhandleDoBlinkMessage(AgentMessage m)
          Description of the Method
 voidhandleDoHideMessage(AgentMessage m)
          Description of the Method
 voidhandleDoMooCombatDeathMessage(AgentMessage m)
           
 voidhandleDoSetIpAgentMessage(AgentMessage m)
          Description of the Method
 voidhandleDoShowMessage(AgentMessage m)
          Description of the Method
 voidhandleEventAgentTraitsModifiedMessage(AgentMessage m)
          Description of the Method
 voidhandleEventAggregateTraitsModifiedMessage(AgentMessage m)
          Description of the Method
 voidhandleEventDeclareAgentTraitsMessage(AgentMessage m)
          Description of the Method
 voidhandleEventDeclareAggregateTraitsMessage(AgentMessage m)
          Description of the Method
 voidhandleEventDeclareKnowledgeAgentAddedMessage(AgentMessage m)
          Description of the Method
 voidhandleEventDeclareKnowledgeAgentRemovedMessage(AgentMessage m)
          Description of the Method
 voidhandleEventDeclareKnowledgeMessage(AgentMessage m)
          Description of the Method
 static voidmain(String[] args)
          Description of the Method
 (package private) voidplayBackgroundSounds()
          Description of the Method
 voidplayTraitedEventSound(String eventSoundName)
          Description of the Method
 voidresponsesReceived(MessageWaiter messageWaiter, Serializable identifier, Collection recentResponses)
          Description of the Method
 voidrun()
          Main processing method for the Graph3dVisualizer object
 voidsetAgentCount(int agentCount)
          Sets the AgentCount attribute of the Graph3dVisualizer object
 voidsetAggregateTraits(AgentTraits aggregateTraits)
          Sets the AggregateTraits attribute of the Graph3dVisualizer object
 voidsetBounds(int x, int y, int w, int h)
          Sets the Bounds attribute of the Graph3dVisualizer object
 voidsetFacility(Facility facility)
          Sets the Facility attribute of the Graph3dVisualizer object
 voidsetIpAgentRoutingTag(RoutingTag ipAgentRoutingTag)
          Sets the IpAgentRoutingTag attribute of the Graph3dVisualizer object
 voidsetIpAgentTraits(AgentTraits agentTraits)
          Sets the IpAgentTraits attribute of the Graph3dVisualizer object
 voidsetLocation(int x, int y)
          Sets the Location attribute of the Graph3dVisualizer object

Methods inherited from class mam.agent.TransactionalAgent
enqueueMessage, getMessageWaiters

Methods inherited from class mam.agent.Agent
fromXmlElement, getAccessStatisticsGroup, getAccount, getAgentProperties, getAgentTraits, getDescription, getFacility, getMamId, getNickname, getQuote, getRole, getRoutingTagToSelf, getXmlSerializable, handleDoAgentShutdownMessage, handleGetAccessStatisticsMessage, handleGetAgentPropertiesMessage, handleGetAgentTraitsMessage, handleGetQuoteMessage, handleMessages, handleSetDescriptionMessage, handleSetNicknameMessage, idleActivity, invokeMessageHandler, registerRoutingTags, requiresPersistence, setAccount, setAgentTraits, setDescription, setMamId, setNickname, setRole, setXmlSerializable, toString, toXmlElement, toXmlElement, unregisterRoutingTags

Methods inherited from class java.lang.Thread
currentThread, yield, sleep, sleep, start, stop, stop, interrupt, interrupted, isInterrupted, destroy, isAlive, suspend, resume, setPriority, getPriority, setName, getName, getThreadGroup, activeCount, enumerate, countStackFrames, join, join, join, dumpStack, setDaemon, isDaemon, checkAccess, getContextClassLoader, setContextClassLoader

Methods inherited from class java.lang.Object
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize

Field Detail

BACKGROUND_SOUND_NAME

public final static String BACKGROUND_SOUND_NAME
Description of the Field
Since:

DEFAULT_PRESSED_STATE

public final static String DEFAULT_PRESSED_STATE
Description of the Field
Since:

DEFAULT_STATE

public final static String DEFAULT_STATE
Description of the Field
Since:

GRAPH_3D_VISUALIZER_AUDIO_GROUP_ID

public final static String GRAPH_3D_VISUALIZER_AUDIO_GROUP_ID
Description of the Field
Since:

GRAPH_3D_VISUALIZER_ROUTING_TAG

public final static RoutingTag GRAPH_3D_VISUALIZER_ROUTING_TAG
Description of the Field
Since:

GRAPH_VISUALIZER_TITLE

private final static String GRAPH_VISUALIZER_TITLE

GRAPH3DVISUALIZER_BACKGROUND_SOUNDS_GROUP

public final static String GRAPH3DVISUALIZER_BACKGROUND_SOUNDS_GROUP
Description of the Field
Since:

Log

static Category Log

m_agentCount

private int m_agentCount

m_aggregateTraits

private AgentTraits m_aggregateTraits

m_dead

boolean m_dead

m_frame

private JFrame m_frame

m_imageCanvas

public ImageCanvas m_imageCanvas
Description of the Field
Since:

m_ipAgentRoutingTag

private RoutingTag m_ipAgentRoutingTag

m_ipAgentTraits

private AgentTraits m_ipAgentTraits

m_visualizationPreferences

public VisualizationPreferences m_visualizationPreferences
Description of the Field
Since:

m_visualizerStateTransitions

private LinkedList m_visualizerStateTransitions

OFF_STATE

public final static String OFF_STATE

ON_STATE

public final static String ON_STATE

VISUALIZATION_PREFERENCES_FILENAME

private final static String VISUALIZATION_PREFERENCES_FILENAME
Constructor Detail

Graph3dVisualizer

public Graph3dVisualizer()
Constructor for the Graph3dVisualizer object
Since:

Graph3dVisualizer

public Graph3dVisualizer(VisualizerNodes nodes)
Constructor for the Graph3dVisualizer object
Parameters:
nodes - Description of Parameter
Since:
Method Detail

addTransition

public void addTransition(String state, long duration)
Adds a feature to the Transition attribute of the Graph3dVisualizer object
Parameters:
state - The feature to be added to the Transition attribute
duration - The feature to be added to the Transition attribute
Since:

finished

public void finished(MessageWaiter messageWaiter)
Description of the Method
Parameters:
messageWaiter - Description of Parameter
Since:

getAgentCount

public int getAgentCount()
Gets the AgentCount attribute of the Graph3dVisualizer object
Returns: The AgentCount value
Since:

getAggregateTraits

public AgentTraits getAggregateTraits()
Gets the AggregateTraits attribute of the Graph3dVisualizer object
Returns: The AggregateTraits value
Since:

getCurrentState

protected String getCurrentState()
Gets the CurrentState attribute of the Graph3dVisualizer object
Returns: The CurrentState value
Since:

getFrame

protected JFrame getFrame()
Gets the Frame attribute of the Graph3dVisualizer object
Returns: The Frame value
Since:

getIpAgentRoutingTag

public RoutingTag getIpAgentRoutingTag()
Gets the IpAgentRoutingTag attribute of the Graph3dVisualizer object
Returns: The IpAgentRoutingTag value
Since:

getIpAgentTraits

public AgentTraits getIpAgentTraits()
Gets the IpAgentTraits attribute of the Graph3dVisualizer object
Returns: The IpAgentTraits value
Since:

handleDeclareLocationKeywordsMessage

public void handleDeclareLocationKeywordsMessage(AgentMessage message)
Description of the Method
Parameters:
message - Description of Parameter
Since:

handleDoBlinkMessage

public void handleDoBlinkMessage(AgentMessage m)
Description of the Method
Parameters:
m - Description of Parameter
Since:

handleDoHideMessage

public void handleDoHideMessage(AgentMessage m)
Description of the Method
Parameters:
m - Description of Parameter
Since:

handleDoMooCombatDeathMessage

public void handleDoMooCombatDeathMessage(AgentMessage m)

handleDoSetIpAgentMessage

public void handleDoSetIpAgentMessage(AgentMessage m)
Description of the Method
Parameters:
m - Description of Parameter
Since:

handleDoShowMessage

public void handleDoShowMessage(AgentMessage m)
Description of the Method
Parameters:
m - Description of Parameter
Since:

handleEventAgentTraitsModifiedMessage

public void handleEventAgentTraitsModifiedMessage(AgentMessage m)
Description of the Method
Parameters:
m - Description of Parameter
Since:

handleEventAggregateTraitsModifiedMessage

public void handleEventAggregateTraitsModifiedMessage(AgentMessage m)
Description of the Method
Parameters:
m - Description of Parameter
Since:

handleEventDeclareAgentTraitsMessage

public void handleEventDeclareAgentTraitsMessage(AgentMessage m)
Description of the Method
Parameters:
m - Description of Parameter
Since:

handleEventDeclareAggregateTraitsMessage

public void handleEventDeclareAggregateTraitsMessage(AgentMessage m)
Description of the Method
Parameters:
m - Description of Parameter
Since:

handleEventDeclareKnowledgeAgentAddedMessage

public void handleEventDeclareKnowledgeAgentAddedMessage(AgentMessage m)
Description of the Method
Parameters:
m - Description of Parameter
Since:

handleEventDeclareKnowledgeAgentRemovedMessage

public void handleEventDeclareKnowledgeAgentRemovedMessage(AgentMessage m)
Description of the Method
Parameters:
m - Description of Parameter
Since:

handleEventDeclareKnowledgeMessage

public void handleEventDeclareKnowledgeMessage(AgentMessage m)
Description of the Method
Parameters:
m - Description of Parameter
Since:

main

public static void main(String[] args)
Description of the Method
Parameters:
args - Description of Parameter
Since:

playBackgroundSounds

void playBackgroundSounds()
Description of the Method
Since:

playTraitedEventSound

public void playTraitedEventSound(String eventSoundName)
Description of the Method
Parameters:
eventSoundName - Description of Parameter
Since:

responsesReceived

public void responsesReceived(MessageWaiter messageWaiter, Serializable identifier, Collection recentResponses)
Description of the Method
Parameters:
messageWaiter - Description of Parameter
identifier - Description of Parameter
recentResponses - Description of Parameter
Since:

run

public void run()
Main processing method for the Graph3dVisualizer object
Since:

setAgentCount

public void setAgentCount(int agentCount)
Sets the AgentCount attribute of the Graph3dVisualizer object
Parameters:
agentCount - The new AgentCount value
Since:

setAggregateTraits

public void setAggregateTraits(AgentTraits aggregateTraits)
Sets the AggregateTraits attribute of the Graph3dVisualizer object
Parameters:
aggregateTraits - The new AggregateTraits value
Since:

setBounds

public void setBounds(int x, int y, int w, int h)
Sets the Bounds attribute of the Graph3dVisualizer object
Parameters:
x - The new Bounds value
y - The new Bounds value
w - The new Bounds value
h - The new Bounds value
Since:

setFacility

public void setFacility(Facility facility)
Sets the Facility attribute of the Graph3dVisualizer object
Parameters:
facility - The new Facility value
Since:

setIpAgentRoutingTag

public void setIpAgentRoutingTag(RoutingTag ipAgentRoutingTag)
Sets the IpAgentRoutingTag attribute of the Graph3dVisualizer object
Parameters:
ipAgentRoutingTag - The new IpAgentRoutingTag value
Since:

setIpAgentTraits

public void setIpAgentTraits(AgentTraits agentTraits)
Sets the IpAgentTraits attribute of the Graph3dVisualizer object
Parameters:
agentTraits - The new IpAgentTraits value
Since:

setLocation

public void setLocation(int x, int y)
Sets the Location attribute of the Graph3dVisualizer object
Parameters:
x - The new Location value
y - The new Location value
Since: