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

IDEA::PslParameterImpl Class Reference
[PlanServer implementation base classes]

See PslParameter for API documentation. More...

#include <PslParameterImpl.hh>

Inheritance diagram for IDEA::PslParameterImpl:

IDEA::PlasmaParameterImpl List of all members.

Public Methods

 ~PslParameterImpl ()
 Destructor.

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.


Protected Methods

 PslParameterImpl (const PslToken *token, const PslArgument *argument)
 Constructor.


Private Methods

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

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


Private Attributes

const PslTokenm_Token
const PslVariablem_Content
const PslVariablem_ObservedValue
const PslArgumentm_Argument
const PslConstraintm_ReturnFlagConstraint
 Maintains the flag logic.

const PslConstraintm_ObservedConstraint
 Maintains the pushing from observed to expected/content value.


Detailed Description

See PslParameter for API documentation.


Constructor & Destructor Documentation

IDEA::PslParameterImpl::~PslParameterImpl  
 

Destructor.

IDEA::PslParameterImpl::PslParameterImpl const PslToken   token,
const PslArgument   argument
[protected]
 

Constructor.


Member Function Documentation

void IDEA::PslParameterImpl::activateFlagConstraint const PslParameter   parameter,
int    authority
 

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

virtual const PslVariable* IDEA::PslParameterImpl::createContentVariable   [private, pure virtual]
 

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

Implemented in IDEA::PlasmaParameterImpl.

virtual const PslVariable* IDEA::PslParameterImpl::createObservedValueVariable   [private, pure virtual]
 

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

Implemented in IDEA::PlasmaParameterImpl.

void IDEA::PslParameterImpl::deActivateFlagConstraint  
 

De-activates the value received constraint.

bool IDEA::PslParameterImpl::finalize  
 

const PslArgument * IDEA::PslParameterImpl::getArgument  
 

Returns the argument associated with the invoking instance.

const PslVariable * IDEA::PslParameterImpl::getContent  
 

Returns the content of the invoking instance.

const PslVariable * IDEA::PslParameterImpl::getObservedValue  
 

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

See PslReturnReceivedConstraintImpl

const PslToken * IDEA::PslParameterImpl::getToken  
 

Returns the token associated with the invoking isntance.

void IDEA::PslParameterImpl::print std::ostream &    os
 

Stream information of the invoking instance to os.

bool IDEA::PslParameterImpl::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.

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
 

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

const PslArgument* IDEA::PslParameterImpl::m_Argument [private]
 

const PslVariable* IDEA::PslParameterImpl::m_Content [private]
 

const PslConstraint* IDEA::PslParameterImpl::m_ObservedConstraint [private]
 

Maintains the pushing from observed to expected/content value.

const PslVariable* IDEA::PslParameterImpl::m_ObservedValue [private]
 

const PslConstraint* IDEA::PslParameterImpl::m_ReturnFlagConstraint [private]
 

Maintains the flag logic.

const PslToken* IDEA::PslParameterImpl::m_Token [private]
 


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