Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

DALT_Server::Client Class Reference

The Client class holds all the contact details for registred clients (i.e. More...

#include <client.h>

Collaboration diagram for DALT_Server::Client:

Collaboration graph
[legend]
List of all members.

Public Types

enum  clientStatus { finished, processing, idle }

Public Methods

 Client (string endp, string ns, float perf, WorldMap *wmap)
virtual ~Client ()
virtual bool createAgent (Entity &entity)
virtual void dispatchAction (Action &a)

Public Attributes

SOAPProxy* endpoint
string location
string name_space
clientStatus current_status
bool assigned
float performance_factor
int last_cycle_time
int average_cycle_time
WorldMapwm

Detailed Description

The Client class holds all the contact details for registred clients (i.e.

adress of their soap server, etc). The class also provides client communication primitives (such as agent creation requests).

Author:
Vlad Mereuta


Member Enumeration Documentation

enum DALT_Server::Client::clientStatus
 

possible processing status of the client.

  • clients are 'finished' when they have just finished a cycle
  • processing while they are working on the data for a cycle
  • idle when they are not assigned any agents and they have nothing to process
Enumeration values:
finished  
processing  
idle  


Constructor & Destructor Documentation

DALT_Server::Client::Client ( string endp,
string ns,
float perf,
WorldMap * wmap )
 

constructor, initialises main attributes to given values.

Parameters:
endp  
ns  
perf  
wmap  

DALT_Server::Client::~Client ( ) [virtual]
 

destructor.


Member Function Documentation

bool DALT_Server::Client::createAgent ( Entity & entity ) [virtual]
 

create the given entity on the (physical) client which is managed by this object.

Parameters:
entity   information about the entity to be created
Returns:
true if the agent was created succesfully, false on failure
Parameters:
entity  

void DALT_Server::Client::dispatchAction ( Action & a ) [virtual]
 

dispatches an action request.

Parameters:
a   the action to be despached
Parameters:
a  


Member Data Documentation

bool DALT_Server::Client::assigned
 

indicates whether the client is assigned to a group or not.

int DALT_Server::Client::average_cycle_time
 

average time taken by a cycle; reported by client.

clientStatus DALT_Server::Client::current_status
 

current client processing status.

SOAPProxy * DALT_Server::Client::endpoint
 

address for the soap server used by the client.

int DALT_Server::Client::last_cycle_time
 

time taken by last cycle; reported by client.

string DALT_Server::Client::location
 

the address of the client.

string DALT_Server::Client::name_space
 

namespace used by the client's soap server.

float DALT_Server::Client::performance_factor
 

speed of this client (compared to a reference machine).

WorldMap * DALT_Server::Client::wm
 

pointer to the world map.


The documentation for this class was generated from the following file:
Generated at Thu Jan 31 15:22:39 2002 for DALT Server by doxygen1.2.8 written by Dimitri van Heesch, © 1997-2001