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

IDEA::PlasmaConstraintImpl Class Reference
[PlanServer implementation using EUROPA-2]

#include <PlasmaConstraintImpl.hh>

Inheritance diagram for IDEA::PlasmaConstraintImpl:

IDEA::PslConstraintImpl List of all members.

Public Methods

 PlasmaConstraintImpl (const EUROPA::ConstraintId &cnstrId, int authority, const std::string &name, bool deleteConstraint=true)
 Constructor.

 ~PlasmaConstraintImpl ()
 Destructor.

const EUROPA::ConstraintId & getConstraintId () const
int getId () const
 Returns a unique identifier of the constraint.

bool isActive () const
 Returns true if the invoking instance is active, eq. is maintained to be true by the underlying plan-database. Otherwise returns false.

void deActivate () const
 De-activates the invoking constraint if activated. Once an activated constraint is de-activated the underlying plan-database is no longer required to maintain it to be true.

void execute ()
 Should implement the invariant maintained by the invoking constraint.

const std::string & getName () const
void activate (int authority=-1)
 Activates the invoking constraint if not yet activated. An activated constraint need to be maintained to be true by the underlying plan-database.

int getAuthority () const
 Returns the authority of the invoking constraint.

virtual void print (std::ostream &os)
 Streams information of the invoking instance to os.


Protected Methods

void activateExtended (int authority) const
void setAuthority (int authority)

Private Attributes

EUROPA::ConstraintId m_ConstraintId
bool m_DeleteConstraint

Detailed Description

class PlasmaConstraintImpl


Constructor & Destructor Documentation

IDEA::PlasmaConstraintImpl::PlasmaConstraintImpl const EUROPA::ConstraintId &    cnstrId,
int    authority,
const std::string &    name,
bool    deleteConstraint = true
 

Constructor.

IDEA::PlasmaConstraintImpl::~PlasmaConstraintImpl  
 

Destructor.


Member Function Documentation

void IDEA::PslConstraintImpl::activate int    authority = -1 [inherited]
 

Activates the invoking constraint if not yet activated. An activated constraint need to be maintained to be true by the underlying plan-database.

void IDEA::PlasmaConstraintImpl::activateExtended int    authority const [protected, virtual]
 

Implements IDEA::PslConstraintImpl.

void IDEA::PlasmaConstraintImpl::deActivate   [virtual]
 

De-activates the invoking constraint if activated. Once an activated constraint is de-activated the underlying plan-database is no longer required to maintain it to be true.

Note:
No re-propagation from it's original state is triggered.

Implements IDEA::PslConstraintImpl.

void IDEA::PlasmaConstraintImpl::execute   [inline, virtual]
 

Should implement the invariant maintained by the invoking constraint.

Implements IDEA::PslConstraintImpl.

int IDEA::PslConstraintImpl::getAuthority   [inherited]
 

Returns the authority of the invoking constraint.

The authority of the constraint is equal to the authority of the last invocation of activate or construction if activate has not been invoked explicitly.

const EUROPA::ConstraintId & IDEA::PlasmaConstraintImpl::getConstraintId  
 

int IDEA::PlasmaConstraintImpl::getId   [virtual]
 

Returns a unique identifier of the constraint.

Implements IDEA::PslConstraintImpl.

const std::string & IDEA::PslConstraintImpl::getName   [inherited]
 

bool IDEA::PlasmaConstraintImpl::isActive   [virtual]
 

Returns true if the invoking instance is active, eq. is maintained to be true by the underlying plan-database. Otherwise returns false.

Implements IDEA::PslConstraintImpl.

void IDEA::PslConstraintImpl::print std::ostream &    os [virtual, inherited]
 

Streams information of the invoking instance to os.

Reimplemented in IDEA::PslObservedConstraintImpl, IDEA::PslReturnReceivedConstraintImpl, and IDEA::PslTimeConstraintImpl.

void IDEA::PslConstraintImpl::setAuthority int    authority [protected, inherited]
 


Member Data Documentation

EUROPA::ConstraintId IDEA::PlasmaConstraintImpl::m_ConstraintId [private]
 

bool IDEA::PlasmaConstraintImpl::m_DeleteConstraint [private]
 


Contact information
© IDEA
Generated on Fri Feb 3 17:09:46 2006 for IDEA.