Server Class Reference

#include <server/Server.h>

Inherits ServerBase.

Inheritance diagram for Server:

Inheritance graph
[legend]
Collaboration diagram for Server:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Server (SOCKET socket)
virtual ~Server ()
bool ExecuteCommand (const char *command)
bool SpecifyRobot (const char *command)
bool SpecifyCollisionDetector (const char *command)
bool SpecifyPlanner (const char *command)
bool Plan ()
void SendString (const char *str) const
bool SocketOK () const
void SendPath () const
bool StartConfig (const char *command)
bool GoalConfig (const char *command)
bool SpecifyEnvironment (const char *command)
bool ConfigureRobot (const char *command)
bool Redraw (const char *command) const

Static Public Member Functions

static void FixNewlines (char *str)

Public Attributes

ObjectGroupthe_ObjectGroup

Protected Member Functions

void SetupServer ()

Protected Attributes

SOCKET socket
bool socketOK

Static Protected Attributes

static int numberOfServers = 0

Detailed Description

Definition at line 40 of file Server.h.


Constructor & Destructor Documentation

Server::Server SOCKET  socket  ) 
 

Definition at line 43 of file Server.cpp.

References ServerBase::m_CurrentConfig, ServerBase::m_StartConfig, and numberOfServers.

Server::~Server  )  [virtual]
 

Definition at line 58 of file Server.cpp.

References numberOfServers.


Member Function Documentation

bool Server::ConfigureRobot const char *  command  ) 
 

Definition at line 377 of file Server.cpp.

References copy(), VectorN::Length(), ServerBase::m_CurrentConfig, and Redraw().

Referenced by ExecuteCommand().

Here is the call graph for this function:

bool Server::ExecuteCommand const char *  command  ) 
 

Definition at line 68 of file Server.cpp.

References ConfigureRobot(), GoalConfig(), Plan(), Redraw(), SendPath(), SpecifyCollisionDetector(), SpecifyEnvironment(), SpecifyPlanner(), SpecifyRobot(), StartConfig(), and stringSize.

Here is the call graph for this function:

void Server::FixNewlines char *  str  )  [static]
 

Definition at line 338 of file Server.cpp.

Referenced by SendString().

bool Server::GoalConfig const char *  command  ) 
 

Definition at line 319 of file Server.cpp.

References copy(), VectorN::Length(), and ServerBase::m_GoalConfig.

Referenced by ExecuteCommand().

Here is the call graph for this function:

bool Server::Plan  ) 
 

Definition at line 239 of file Server.cpp.

References ServerBase::collisionDetector, ServerBase::collisionDetectorType, ServerBase::m_GoalConfig, ServerBase::m_StartConfig, PlannerBase::Plan(), ServerBase::planner, ServerBase::planPassed, PL_HasCollisionDetector::SetCollisionDetector(), ServerBase::SetCollisionDetector(), PlannerBase::SetGoalConfig(), and PlannerBase::SetStartConfig().

Referenced by ExecuteCommand().

Here is the call graph for this function:

bool Server::Redraw const char *  command  )  const
 

Definition at line 397 of file Server.cpp.

References FALSE.

Referenced by ConfigureRobot(), and ExecuteCommand().

void Server::SendPath  )  const
 

Definition at line 281 of file Server.cpp.

References PlannerBase::GetPath(), ServerBase::planner, ServerBase::planPassed, SendString(), and PathBase::Serialize().

Referenced by ExecuteCommand().

Here is the call graph for this function:

void Server::SendString const char *  str  )  const
 

Definition at line 256 of file Server.cpp.

References copy(), FixNewlines(), socket, and socketOK.

Referenced by SendPath().

Here is the call graph for this function:

void Server::SetupServer  )  [protected]
 

bool Server::SocketOK  )  const
 

Definition at line 274 of file Server.cpp.

References socketOK.

bool Server::SpecifyCollisionDetector const char *  command  ) 
 

Definition at line 180 of file Server.cpp.

References CD_VCOLLIDE, ServerBase::collisionDetector, ServerBase::planner, PL_HasCollisionDetector::SetCollisionDetector(), ServerBase::SetCollisionDetector(), and stringSize.

Referenced by ExecuteCommand().

Here is the call graph for this function:

bool Server::SpecifyEnvironment const char *  command  ) 
 

Definition at line 367 of file Server.cpp.

References ServerBase::ParseObstacleFile().

Referenced by ExecuteCommand().

Here is the call graph for this function:

bool Server::SpecifyPlanner const char *  command  ) 
 

Definition at line 206 of file Server.cpp.

References PLANNER_ACA, PLANNER_SEQUENTIAL, ServerBase::SetPlanner(), and stringSize.

Referenced by ExecuteCommand().

Here is the call graph for this function:

bool Server::SpecifyRobot const char *  command  ) 
 

Definition at line 159 of file Server.cpp.

References ServerBase::R_ThreeCylinderRobot(), and stringSize.

Referenced by ExecuteCommand().

Here is the call graph for this function:

bool Server::StartConfig const char *  command  ) 
 

Definition at line 299 of file Server.cpp.

References copy(), VectorN::Length(), and ServerBase::m_StartConfig.

Referenced by ExecuteCommand().

Here is the call graph for this function:


Member Data Documentation

int Server::numberOfServers = 0 [static, protected]
 

Definition at line 116 of file Server.h.

Referenced by Server(), and ~Server().

SOCKET Server::socket [protected]
 

Definition at line 111 of file Server.h.

Referenced by SendString().

bool Server::socketOK [mutable, protected]
 

Definition at line 121 of file Server.h.

Referenced by SendString(), and SocketOK().

ObjectGroup* Server::the_ObjectGroup
 

Definition at line 96 of file Server.h.


The documentation for this class was generated from the following files:
Generated on Sat Apr 1 22:04:10 2006 for Motion Planning Kernel by  doxygen 1.4.6-NO