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

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

See PslParameter for API documentation. More...

#include <PlasmaParameterImpl.hh>

Inheritance diagram for IDEA::PlasmaParameterImpl:

IDEA::PslParameterImpl List of all members.

Public Methods

 PlasmaParameterImpl (const PslToken *token, const PslArgument *argument, EUROPA::ConstrainedVariableId variableId)
void activateFlagConstraint (const PslParameter *parameter, int authority)
 Activates (and creates if required) the value-received constraint.

void deActivateFlagConstraint ()
 De-activates the value received constraint.

bool finalize ()
void reset (const IntVector &authorities)
 Resets the invoking parameter content variable.

const PslVariablegetObservedValue ()
 An intermediate variable used only for parameters of type return-flag and return-status-flag.

const PslArgumentgetArgument () const
 Returns the argument associated with the invoking instance.

const PslVariablegetContent ()
 Returns the content of the invoking instance.

const PslTokengetToken () const
 Returns the token associated with the invoking isntance.

bool receivedValue (const std::string &value)
 Sets the content of the invoking parameter to value and the actual value of the corresponding flag to true. The type of the value will be marshalled to the correct type of the content-variable.

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


Private Methods

const PslVariablecreateContentVariable ()
 Creates a content variable, should contain all the values of this->getArgument()->getDomain().

const PslVariablecreateObservedValueVariable ()
 Creates an observed value variable, should contain all the values of this->getArgument()->getDomain().


Private Attributes

EUROPA::ConstrainedVariableId m_VariableId

Detailed Description

See PslParameter for API documentation.


Constructor & Destructor Documentation

IDEA::PlasmaParameterImpl::PlasmaParameterImpl const PslToken   token,
const PslArgument   argument,
EUROPA::ConstrainedVariableId    variableId
 


Member Function Documentation

void IDEA::PslParameterImpl::activateFlagConstraint const PslParameter   parameter,
int    authority
[inherited]
 

Activates (and creates if required) the value-received constraint.

const PslVariable * IDEA::PlasmaParameterImpl::createContentVariable   [private, virtual]
 

Creates a content variable, should contain all the values of this->getArgument()->getDomain().

Implements IDEA::PslParameterImpl.

const PslVariable * IDEA::PlasmaParameterImpl::createObservedValueVariable   [private, virtual]
 

Creates an observed value variable, should contain all the values of this->getArgument()->getDomain().

Implements IDEA::PslParameterImpl.

void IDEA::PslParameterImpl::deActivateFlagConstraint   [inherited]
 

De-activates the value received constraint.

bool IDEA::PslParameterImpl::finalize   [inherited]
 

const PslArgument * IDEA::PslParameterImpl::getArgument   [inherited]
 

Returns the argument associated with the invoking instance.

const PslVariable * IDEA::PslParameterImpl::getContent   [inherited]
 

Returns the content of the invoking instance.

const PslVariable * IDEA::PslParameterImpl::getObservedValue   [inherited]
 

An intermediate variable used only for parameters of type return-flag and return-status-flag.

See PslReturnReceivedConstraintImpl

const PslToken * IDEA::PslParameterImpl::getToken   [inherited]
 

Returns the token associated with the invoking isntance.

void IDEA::PslParameterImpl::print std::ostream &    os [inherited]
 

Stream information of the invoking instance to os.

bool IDEA::PslParameterImpl::receivedValue const std::string &    value [inherited]
 

Sets the content of the invoking parameter to value and the actual value of the corresponding flag to true. The type of the value will be marshalled to the correct type of the content-variable.

Raises an error if invoked on a parameter whose argument is not return or return-status.

Returns true if the database remains consistent otherwise returns false.

void IDEA::PslParameterImpl::reset const IntVector   authorities [inherited]
 

Resets the invoking parameter content variable.

Only resets the variable is it is a successor-selector and it has at least one constraint on it's content variable with an authority equal to one of the authorities in authorities


Member Data Documentation

EUROPA::ConstrainedVariableId IDEA::PlasmaParameterImpl::m_VariableId [private]
 


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