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

DALT_Client::Action Class Reference

Class compiles the main data describing actions. More...

#include <action.h>

Inheritance diagram for DALT_Client::Action:

Inheritance graph
[legend]
Collaboration diagram for DALT_Client::Action:

Collaboration graph
[legend]
List of all members.

Public Methods

 Action (string name, SOAPProxy *endpoint, int cost)
 constructor. More...

virtual ~Action ()
 destructor, does nothing. More...

void setOriginator (Entity *originator)
 sets the originator of this action. More...

void addTarget (Entity &target)
 adds a new target. More...

virtual int dispatch ()
 dispatches this action. More...


Public Attributes

string name
 the name uniquely identifying this action. More...


Protected Attributes

AllowedSets allowed_sets
 the entity types which are allowed to take part in this action. More...

vector<Entitytargets
 the specific entites chosen for a particular instance of the action. More...

int time_cost
 the cost in simulation cycles of this action. More...

Entityoriginator
 the entity originating this action. More...

SOAPProxy* endpoint
 endpoint for the server. More...


Detailed Description

Class compiles the main data describing actions.

Todo:
set originator, target, etc
Author:
Vlad Mereuta

Definition at line 39 of file action.h.


Constructor & Destructor Documentation

DALT_Client::Action::Action ( string name,
SOAPProxy * endpoint,
int cost )
 

constructor.

Parameters:
name   the name of this action (it uniquely identifies it)
endpoint   the address at which the SOAP server is running
cost   the cost of the action, in cycles
Parameters:
name  
endpoint  
cost  

DALT_Client::Action::~Action ( ) [virtual]
 

destructor, does nothing.


Member Function Documentation

void DALT_Client::Action::addTarget ( Entity & target )
 

adds a new target.

Parameters:
target  

int DALT_Client::Action::dispatch ( ) [virtual]
 

dispatches this action.

Returns:
0 if action was completed succesfully; other positive value otherwise. The encoding of the error is left up for implementations

void DALT_Client::Action::setOriginator ( Entity * originator )
 

sets the originator of this action.

Parameters:
originator  


Member Data Documentation

AllowedSets DALT_Client::Action::allowed_sets [protected]
 

the entity types which are allowed to take part in this action.

Definition at line 43 of file action.h.

SOAPProxy * DALT_Client::Action::endpoint [protected]
 

endpoint for the server.

Definition at line 51 of file action.h.

string DALT_Client::Action::name
 

the name uniquely identifying this action.

Definition at line 55 of file action.h.

Entity * DALT_Client::Action::originator [protected]
 

the entity originating this action.

Definition at line 49 of file action.h.

vector< Entity > DALT_Client::Action::targets [protected]
 

the specific entites chosen for a particular instance of the action.

Definition at line 45 of file action.h.

int DALT_Client::Action::time_cost [protected]
 

the cost in simulation cycles of this action.

Definition at line 47 of file action.h.


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