#include <MoNet.h>
Public Member Functions | |
MoNet () | |
virtual | ~MoNet () |
virtual OStatus | DoInit (const OSystemEvent &event) |
virtual OStatus | DoStart (const OSystemEvent &event) |
virtual OStatus | DoStop (const OSystemEvent &event) |
virtual OStatus | DoDestroy (const OSystemEvent &event) |
void | NotifyClientCommand (const ONotifyEvent &event) |
void | NotifyAgentResult (const ONotifyEvent &event) |
Public Attributes | |
OSubject * | subject [numOfSubject] |
OObserver * | observer [numOfObserver] |
Private Member Functions | |
void | LoadMotionODA () |
void | LoadSoundODA () |
void | ReadMoNetConfig (const char *path) |
void | ReadMoNetCommandConfig (const char *path) |
MoNetAgentID | ToMoNetAgentID (char *agt) |
int | ToCommandIndex (const ODA &oda, char *cmd, char *idx) |
MoNetPosture | ToStartPosture (char *cmd) |
MoNetPosture | ToEndPosture (char *cmd) |
MoNetPosture | ToPosture (char *pos) |
MoNetCommandID | Execute (MoNetCommandID id) |
void | ExecuteCommandInfo (MoNetCommandInfo *cinfo) |
int | NewAndDivideSyncKey (int ndivkey, OVRSyncKey *divkey) |
void | ReplyClientResult (MoNetCommandID id, MoNetStatus st, MoNetPosture pos) |
Private Attributes | |
MoNetState | moNetState |
MoNetCommandInfoManager | moNetCommandInfoManager |
DirectedGraph< CommandNode, CommandArc > | moNet |
list< CommandArc > | commandArcPath |
MoNetCommandID | currentCommandID |
MoNetPosture | currentPosture |
ODesignDataID | motionDataID |
ODesignDataID | soundDataID |
ODA | motionODA |
ODA | soundODA |
Static Private Attributes | |
const size_t | LINEBUFSIZE = 256 |
const size_t | NUMBUFSIZE = 8 |
|
Definition at line 19 of file MoNet.cc. References MNS_IDLE, and monetpostureNT. |
|
|
|
|
|
Definition at line 28 of file MoNet.cc. References LoadMotionODA(), LoadSoundODA(), ReadMoNetCommandConfig(), and ReadMoNetConfig(). |
|
Definition at line 60 of file MoNet.cc. References moNetState. |
|
Definition at line 71 of file MoNet.cc. References moNetState. |
|
Definition at line 429 of file MoNet.cc. References commandArcPath, currentPosture, MoNetCommandInfo::EndPosture(), ExecuteCommandInfo(), MoNetCommandInfoManager::Find(), moNet, monetagentUNDEF, moNetCommandInfoManager, monetINVALID_ARG, DirectedGraph< Node, Arc >::Search(), MoNetCommandInfo::StartPosture(), and subject. Referenced by NotifyClientCommand(). |
|
Definition at line 463 of file MoNet.cc. References MoNetAgentCommand::agent, MoNetCommandInfo::AgentCommand(), MoNetAgentCommand::index, NewAndDivideSyncKey(), MoNetCommandInfo::NumAgentCommands(), subject, MoNetAgentCommand::syncKey, and MoNetCommandInfo::UseSyncKey(). Referenced by Execute(), and NotifyAgentResult(). |
|
Definition at line 168 of file MoNet.cc. References byte, motionDataID, motionODA, and ODA::Set(). Referenced by DoInit(). |
|
Definition at line 189 of file MoNet.cc. References byte, ODA::Set(), soundDataID, and soundODA. Referenced by DoInit(). |
|
Definition at line 496 of file MoNet.cc. Referenced by ExecuteCommandInfo(). |
|
|
Definition at line 89 of file MoNet.cc. References MoNetCommand::commandID, currentCommandID, currentPosture, Execute(), monetBUSY, monetINVALID_ARG, monetpostureUNDEF, moNetState, observer, and ReplyClientResult(). |
|
|
|
Definition at line 553 of file MoNet.cc. References subject. Referenced by NotifyAgentResult(), and NotifyClientCommand(). |
|
Definition at line 353 of file MoNet.cc. References ODA::GetData(), ODA::GetMagic(), ODA::GetName(), MTNFile::GetName(), and ODA::GetNumFiles(). Referenced by ReadMoNetCommandConfig(), and ReadMoNetConfig(). |
|
Definition at line 396 of file MoNet.cc. References MONET_AGENT_COMMAND_NAME_MAX, and ToPosture(). Referenced by ReadMoNetCommandConfig(), and ReadMoNetConfig(). |
|
Definition at line 337 of file MoNet.cc. Referenced by ReadMoNetCommandConfig(), and ReadMoNetConfig(). |
|
Definition at line 409 of file MoNet.cc. Referenced by ToEndPosture(), and ToStartPosture(). |
|
Definition at line 384 of file MoNet.cc. References MONET_AGENT_COMMAND_NAME_MAX, and ToPosture(). Referenced by ReadMoNetCommandConfig(), and ReadMoNetConfig(). |
|
Definition at line 75 of file MoNet.h. Referenced by Execute(), and NotifyAgentResult(). |
|
Definition at line 76 of file MoNet.h. Referenced by NotifyAgentResult(), and NotifyClientCommand(). |
|
Definition at line 77 of file MoNet.h. Referenced by Execute(), NotifyAgentResult(), and NotifyClientCommand(). |
|
Definition at line 69 of file MoNet.h. Referenced by ReadMoNetCommandConfig(), and ReadMoNetConfig(). |
|
Definition at line 74 of file MoNet.h. Referenced by Execute(), ReadMoNetCommandConfig(), and ReadMoNetConfig(). |
|
Definition at line 73 of file MoNet.h. Referenced by Execute(), ReadMoNetCommandConfig(), and ReadMoNetConfig(). |
|
Definition at line 72 of file MoNet.h. Referenced by DoStart(), DoStop(), NotifyAgentResult(), and NotifyClientCommand(). |
|
Definition at line 78 of file MoNet.h. Referenced by LoadMotionODA(). |
|
Definition at line 80 of file MoNet.h. Referenced by LoadMotionODA(), ReadMoNetCommandConfig(), and ReadMoNetConfig(). |
|
|
|
Definition at line 39 of file MoNet.h. Referenced by NotifyAgentResult(), and NotifyClientCommand(). |
|
Definition at line 79 of file MoNet.h. Referenced by LoadSoundODA(). |
|
Definition at line 81 of file MoNet.h. Referenced by LoadSoundODA(), ReadMoNetCommandConfig(), and ReadMoNetConfig(). |
|
Definition at line 38 of file MoNet.h. Referenced by Execute(), ExecuteCommandInfo(), and ReplyClientResult(). |