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

/home/pauldt/projects/IDEA/IDEA-ALL/IDEA-DEV/Core/PlanServer/Includes/PslParameter.hh

Go to the documentation of this file.
00001 // -*- Mode: C++ -*-
00002 //      CVS: $Id: PslParameter.hh,v 1.8 2005/11/08 18:32:43 rijsman Exp $
00003 //      Tag: $name$
00004 //     Info: $CVSROOT/IDEA-DEV/COPYRIGHT
00005 #ifndef PLANSERVER_PARAMETER_HEADER_
00006 #define PLANSERVER_PARAMETER_HEADER_
00007 
00008 #include "Utilities.hh"
00009 #include "TimeBasics.hh"
00010 
00011 namespace IDEA
00012 {
00013   class PslArgument;
00014   class PslDatabase;
00015   class PslParameterImpl;
00016   class PslToken;
00017   class PslVariable;
00018 
00027   class PslParameter
00028   {
00029   public:
00033     PslParameter( PslParameterImpl* impl );
00037     ~PslParameter();
00041     bool finalize() const;
00045     const PslToken* getToken() const;
00049     const PslArgument* getArgument() const;
00056     const PslVariable* getContent() const;
00064     const PslVariable* getObservedValue() const;
00073     void receivedValue( const std::string& value ) const;
00074     /*
00075       \brief Activates the constraint(s) which maintain the relation between the flag and (return) status 
00076       parameters.
00077       
00078       The constraint(s) activated depend on the token being executable or goal and one only knows this 
00079       when a timeline has been assigned to a token. This can only be invoked in PslToken::getTimeline is 
00080       not equal to zero.
00081     */
00082     void activateFlagConstraint( int authority ) const;
00083      /*
00084        \brief De-activates the constraint(s) which maintain the relation between the flag and (return) status 
00085        parameters.
00086      */
00087     void deActivateFlagConstraint() const;
00092     void reset( const IntVector& authorities ) const;
00093     
00094     void print( std::ostream& os ) const;
00095   private:
00099     PslParameterImpl* m_Impl;
00100   public:
00104     const PslVariable* getActualValue() const;
00105   };
00106 
00110   std::ostream& operator<<(std::ostream& os, const PslParameter& parameter);
00111 }
00112 
00113 #endif // PLANSERVER_PARAMETER_HEADER_

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