#ifndef  TYPE_SDAICHARACTERIZED_ACTIVITY_DEFINITION_H
#define  TYPE_SDAICHARACTERIZED_ACTIVITY_DEFINITION_H

// This file was generated by exp2cxx,
// 0.8.1.
// You probably don't want to edit it since your modifications
// will be lost if exp2cxx is used to regenerate it.


//////////  SELECT TYPE SdaiCharacterized_activity_definition
class SC_SCHEMA_EXPORT SdaiCharacterized_activity_definition  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   ACTIVITY    --  sdaiINSTANCE
    //   ACTIVITY_METHOD    --  sdaiINSTANCE
    //   ACTIVITY_METHOD_RELATIONSHIP    --  sdaiINSTANCE
    //   CONDITION    --  sdaiINSTANCE
    //   CONDITION_EVALUATION    --  sdaiINSTANCE
    //   CONDITION_RELATIONSHIP    --  sdaiINSTANCE
    //   REQUIRED_RESOURCE_ASSIGNMENT    --  sdaiINSTANCE
    //   RESOURCE_AS_REALIZED_ASSIGNMENT    --  sdaiINSTANCE
    //   RESOURCE_EVENT    --  sdaiINSTANCE
    //   RESOURCE_ITEM_ASSIGNMENT    --  sdaiINSTANCE
    //   TASK_OBJECTIVE    --  sdaiINSTANCE
    //   WORK_OUTPUT    --  sdaiINSTANCE
       SDAI_Application_instance_ptr _app_inst;

  public:
    virtual const TypeDescriptor * AssignEntity (SDAI_Application_instance * se);
    virtual SDAI_Select * NewSelect ();

    virtual BASE_TYPE ValueType() const;


// STEP Part 21
    virtual void STEPwrite_content (ostream& out =std::cout,
                    const char *currSch =0) const;
    virtual void STEPwrite_verbose (ostream& out =std::cout,
                    const char *currSch =0) const;
    virtual Severity STEPread_content (istream& in =cin,
        InstMgrBase * instances =0, const char *utype =0,
        int addFileId =0, const char *currSch =0);
    virtual Severity StrToVal_content (const char *,
        InstMgrBase * instances =0);

// STEP Part 22:  SDAI

// constructors
    SdaiCharacterized_activity_definition( const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_characterized_activity_definition );
    //  part 1
    SdaiCharacterized_activity_definition( const SdaiActivity_ptr&,
                                           const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_characterized_activity_definition );
    SdaiCharacterized_activity_definition( const SdaiActivity_method_ptr&,
                                           const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_characterized_activity_definition );
    SdaiCharacterized_activity_definition( const SdaiActivity_method_relationship_ptr&,
                                           const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_characterized_activity_definition );
    SdaiCharacterized_activity_definition( const SdaiCondition_ptr&,
                                           const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_characterized_activity_definition );
    SdaiCharacterized_activity_definition( const SdaiCondition_evaluation_ptr&,
                                           const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_characterized_activity_definition );
    SdaiCharacterized_activity_definition( const SdaiCondition_relationship_ptr&,
                                           const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_characterized_activity_definition );
    SdaiCharacterized_activity_definition( const SdaiRequired_resource_assignment_ptr&,
                                           const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_characterized_activity_definition );
    SdaiCharacterized_activity_definition( const SdaiResource_as_realized_assignment_ptr&,
                                           const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_characterized_activity_definition );
    SdaiCharacterized_activity_definition( const SdaiResource_event_ptr&,
                                           const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_characterized_activity_definition );
    SdaiCharacterized_activity_definition( const SdaiResource_item_assignment_ptr&,
                                           const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_characterized_activity_definition );
    SdaiCharacterized_activity_definition( const SdaiTask_objective_ptr&,
                                           const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_characterized_activity_definition );
    SdaiCharacterized_activity_definition( const SdaiWork_output_ptr&,
                                           const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_characterized_activity_definition );
    virtual ~SdaiCharacterized_activity_definition();

    //  part 2
    operator SdaiActivity_ptr();
    operator SdaiActivity_method_ptr();
    operator SdaiActivity_method_relationship_ptr();
    operator SdaiCondition_ptr();
    operator SdaiCondition_evaluation_ptr();
    operator SdaiCondition_relationship_ptr();
    operator SdaiRequired_resource_assignment_ptr();
    operator SdaiResource_as_realized_assignment_ptr();
    operator SdaiResource_event_ptr();
    operator SdaiResource_item_assignment_ptr();
    operator SdaiTask_objective_ptr();
    operator SdaiWork_output_ptr();

    //  part 3
        SdaiWork_output_item_ptr_c output_item_() const;
        SdaiWork_output_item_ptr   output_item_();
        void output_item_( const SdaiWork_output_item_ptr x );

        SdaiManaged_resource_ptr_c resource_() const;
        SdaiManaged_resource_ptr   resource_();
        void resource_( const SdaiManaged_resource_ptr x );

        SdaiValue_with_unit_ptr_c quantity_() const;
        SdaiValue_with_unit_ptr   quantity_();
        void quantity_( const SdaiValue_with_unit_ptr x );

        SdaiRequired_resource_item_ptr_c item_() const;
        SdaiRequired_resource_item_ptr   item_();
        void item_( const SdaiRequired_resource_item_ptr x );

        SdaiRequired_resource_ptr_c assigned_resource_() const;
        SdaiRequired_resource_ptr   assigned_resource_();
        void assigned_resource_( const SdaiRequired_resource_ptr x );

        SdaiCondition_ptr_c related_condition_() const;
        SdaiCondition_ptr   related_condition_();
        void related_condition_( const SdaiCondition_ptr x );

        SdaiCondition_ptr_c relating_condition_() const;
        SdaiCondition_ptr   relating_condition_();
        void relating_condition_( const SdaiCondition_ptr x );

        SdaiCondition_ptr_c condition_() const;
        SdaiCondition_ptr   condition_();
        void condition_( const SdaiCondition_ptr x );

        Logical   result_() const;
        void result_( const Logical x );

        SdaiActivity_method_ptr_c related_method_() const;
        SdaiActivity_method_ptr   related_method_();
        void related_method_( const SdaiActivity_method_ptr x );

        SdaiActivity_method_ptr_c relating_method_() const;
        SdaiActivity_method_ptr   relating_method_();
        void relating_method_( const SdaiActivity_method_ptr x );

  const SDAI_String   purpose_() const;
        SDAI_String   purpose_();
        void purpose_( const SDAI_String x );

  const SDAI_String   consequence_() const;
        SDAI_String   consequence_();
        void consequence_( const SDAI_String x );

        SdaiActivity_method_ptr_c chosen_method_() const;
        SdaiActivity_method_ptr   chosen_method_();
        void chosen_method_( const SdaiActivity_method_ptr x );

  const SDAI_String   description_() const;
        SDAI_String   description_();
        void description_( const SDAI_String x );

  const SDAI_String   name_() const;
        SDAI_String   name_();
        void name_( const SDAI_String x );

  const SDAI_String   id_() const;
        SDAI_String   id_();
        void id_( const SDAI_String x );


    //  part 4
    SdaiCharacterized_activity_definition& operator =( const SdaiActivity_ptr& );
    SdaiCharacterized_activity_definition& operator =( const SdaiActivity_method_ptr& );
    SdaiCharacterized_activity_definition& operator =( const SdaiActivity_method_relationship_ptr& );
    SdaiCharacterized_activity_definition& operator =( const SdaiCondition_ptr& );
    SdaiCharacterized_activity_definition& operator =( const SdaiCondition_evaluation_ptr& );
    SdaiCharacterized_activity_definition& operator =( const SdaiCondition_relationship_ptr& );
    SdaiCharacterized_activity_definition& operator =( const SdaiRequired_resource_assignment_ptr& );
    SdaiCharacterized_activity_definition& operator =( const SdaiResource_as_realized_assignment_ptr& );
    SdaiCharacterized_activity_definition& operator =( const SdaiResource_event_ptr& );
    SdaiCharacterized_activity_definition& operator =( const SdaiResource_item_assignment_ptr& );
    SdaiCharacterized_activity_definition& operator =( const SdaiTask_objective_ptr& );
    SdaiCharacterized_activity_definition& operator =( const SdaiWork_output_ptr& );
    // not in SDAI
    SdaiCharacterized_activity_definition& ShallowCopy ( const SdaiCharacterized_activity_definition& );

#ifdef COMPILER_DEFINES_OPERATOR_EQ
#else
    SdaiCharacterized_activity_definition& operator =( SdaiCharacterized_activity_definition * const & );
    SDAI_Select& operator =( const SDAI_Select& );
#endif

    //  part 5
    Logical IsActivity() const;
    Logical IsActivity_method() const;
    Logical IsActivity_method_relationship() const;
    Logical IsCondition() const;
    Logical IsCondition_evaluation() const;
    Logical IsCondition_relationship() const;
    Logical IsRequired_resource_assignment() const;
    Logical IsResource_as_realized_assignment() const;
    Logical IsResource_event() const;
    Logical IsResource_item_assignment() const;
    Logical IsTask_objective() const;
    Logical IsWork_output() const;

    //  part 6 ... UnderlyingTypeName () implemented in SDAI_Select class ...

    //  part 7 ... NONE    only for complex selects...
};

inline SDAI_Select * create_SdaiCharacterized_activity_definition () { return new SdaiCharacterized_activity_definition; }
typedef SdaiCharacterized_activity_definition * SdaiCharacterized_activity_definitionH;
typedef SdaiCharacterized_activity_definition_ptr SdaiCharacterized_activity_definition_var;


class SdaiCharacterized_activity_definition_agg : public SelectAggregate {
  protected:
    SelectTypeDescriptor *sel_type;

  public:
    SdaiCharacterized_activity_definition_agg( SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_characterized_activity_definition );
    ~SdaiCharacterized_activity_definition_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiCharacterized_activity_definition( sel_type )); }
};
inline STEPaggregate * create_SdaiCharacterized_activity_definition_agg () { return new SdaiCharacterized_activity_definition_agg; }
typedef SdaiCharacterized_activity_definition_agg_ptr SdaiCharacterized_activity_definition_agg_var;

/////  END SELECT TYPE characterized_activity_definition

void init_SdaiCharacterized_activity_definition(Registry& reg);

#endif
