ClearingAgent Class Reference

This class implements a mobile robots that performs clearing and navigates using the SND algorithm. More...

#include <ClearingMobileRobot.h>

List of all members.

Public Member Functions

 ClearingAgent (const ClearingAgent &a)
void operator= (const ClearingAgent &a)
void setID (IdentityCL i)
 Set the IdentityCL.
void setPosition (Position p)
 Set the Position.
void setIsLeader ()
 Set ClearingAgent as leader.
void unsetIsLeader ()
 Unset ClearingAgent as leader.
void setBehavior (BehaviorTypes b)
 Sets the actual behaviour.
IdentityCL getID ()
 Get the Identity.
Position getPosition ()
 Get the Position.
bool isLeader ()
 Get if agent is Leader.
BehaviorTypes getBehavior ()
 Gets the actual behaviour.
void goTo (Position pos)
 Send a message to the robot to reach the position pos.
int getNumFollowers ()
bool isWaitingForAnyAgent ()
void setToFollow ()
Position getLSRPosition ()
Decimal getSensorRange ()
Frontier getFrontier ()
CellgetCell (DubInt c)
Position getCellPosition (DubInt c)
bool isWaitingForAgent (IdentityCL id)
void clearWaitingForAgent ()
void setFrontier (Frontier &f)
void setToWander ()
void setToExpand (PathCl &pth, AgentVector &agnt)
void setToNoBehavior ()
void logData ()
void addFollower (ClearingAgent &cla)
void addFollower (ClearingMobileRobot *clmr)


Detailed Description

This class implements a mobile robots that performs clearing and navigates using the SND algorithm.

Author:
Joey Durham and Paolo Stegagno

Constructor & Destructor Documentation

ClearingAgent::ClearingAgent ( const ClearingAgent a  )  [inline]


Member Function Documentation

void ClearingAgent::operator= ( const ClearingAgent a  )  [inline]

void ClearingAgent::setID ( IdentityCL  i  )  [inline]

Set the IdentityCL.

Parameters:
[in] i Identity to be set.

void ClearingAgent::setPosition ( Position  p  )  [inline]

Set the Position.

Parameters:
[in] p Position to be set.

void ClearingAgent::setIsLeader (  )  [inline]

Set ClearingAgent as leader.

void ClearingAgent::unsetIsLeader (  )  [inline]

Unset ClearingAgent as leader.

void ClearingAgent::setBehavior ( BehaviorTypes  b  )  [inline]

Sets the actual behaviour.

IdentityCL ClearingAgent::getID (  )  [inline]

Get the Identity.

Returns:
The Identity of the ClearingAgent.

Position ClearingAgent::getPosition ( void   )  [inline]

Get the Position.

Returns:
The current Position of the ClearingAgent.

bool ClearingAgent::isLeader (  )  [inline]

Get if agent is Leader.

Returns:
true if is Leader, false otherwise.

BehaviorTypes ClearingAgent::getBehavior (  )  [inline]

Gets the actual behaviour.

void ClearingAgent::goTo ( Position  pos  )  [inline]

Send a message to the robot to reach the position pos.

Parameters:
[in] pos Position.

Todo:
IMPLEMENT ME (this function should send a message to the relative robot to go to the position pos)

int ClearingAgent::getNumFollowers (  )  [inline]

Todo:
IMPLEMENT ME (this function should send a message to the relative robot to go to the position pos)

bool ClearingAgent::isWaitingForAnyAgent (  )  [inline]

Todo:
IMPLEMENT ME (this function should send a message to the relative robot to go to the position pos)

void ClearingAgent::setToFollow (  )  [inline]

Position ClearingAgent::getLSRPosition (  )  [inline]

Decimal ClearingAgent::getSensorRange (  )  [inline]

Frontier ClearingAgent::getFrontier (  )  [inline]

Cell* ClearingAgent::getCell ( DubInt  c  )  [inline]

Position ClearingAgent::getCellPosition ( DubInt  c  )  [inline]

bool ClearingAgent::isWaitingForAgent ( IdentityCL  id  )  [inline]

void ClearingAgent::clearWaitingForAgent (  )  [inline]

void ClearingAgent::setFrontier ( Frontier f  )  [inline]

void ClearingAgent::setToWander (  )  [inline]

void ClearingAgent::setToExpand ( PathCl pth,
AgentVector agnt 
) [inline]

void ClearingAgent::setToNoBehavior (  )  [inline]

void ClearingAgent::logData (  )  [inline]

void ClearingAgent::addFollower ( ClearingAgent cla  )  [inline]

void ClearingAgent::addFollower ( ClearingMobileRobot clmr  )  [inline]


The documentation for this class was generated from the following file:

Generated on Mon Feb 20 07:01:09 2017 for MIP by  doxygen 1.5.6