/[ascend]/trunk/pygtk/simulation.h
ViewVC logotype

Diff of /trunk/pygtk/simulation.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 774 by johnpye, Fri Jul 14 08:01:48 2006 UTC revision 775 by johnpye, Sat Jul 15 07:18:54 2006 UTC
# Line 35  public: Line 35  public:
35      std::vector<Variable> freeablevars; /**< vars that should be freed */      std::vector<Variable> freeablevars; /**< vars that should be freed */
36  };  };
37    
38    enum StructuralStatus{
39        ASCXX_DOF_UNDERSPECIFIED=1,
40        ASCXX_DOF_SQUARE=2, /* = everything's ok */
41        ASCXX_DOF_OVERSPECIFIED=4,
42        ASCXX_DOF_STRUCT_SINGULAR=3
43    };
44    
45  /**  /**
46      @TODO This class is for *Simulation* instances.      @TODO This class is for *Simulation* instances.
47    
# Line 57  private: Line 64  private:
64      SingularityInfo *sing; /// will be used to store this iff singularity found      SingularityInfo *sing; /// will be used to store this iff singularity found
65    
66      // options to pass to BinTokenSetOptions      // options to pass to BinTokenSetOptions
67      /// TODO these should probably be put somewhere else      /// @TODO these should probably be put somewhere else
68      std::string *bin_srcname;      std::string *bin_srcname;
69      std::string *bin_objname;      std::string *bin_objname;
70      std::string *bin_libname;      std::string *bin_libname;
# Line 77  public: Line 84  public:
84      Instanc &getModel();      Instanc &getModel();
85      void run(const Method &method);      void run(const Method &method);
86      void run(const Method &method, Instanc &model);      void run(const Method &method, Instanc &model);
87      void checkDoF() const;      enum StructuralStatus checkDoF() const;
88      const bool check();      void checkInstance();
89      void build();      void build();
90      void solve(Solver s, SolverReporter &reporter);      void solve(Solver s, SolverReporter &reporter);
91      std::vector<Variable> getFixableVariables();      std::vector<Variable> getFixableVariables();
# Line 101  public: Line 108  public:
108    
109      const int getActiveBlock() const;      const int getActiveBlock() const;
110    
111      void checkConsistency() const;      std::vector<Variable> getFreeableVariables();
112      bool checkStructuralSingularity();      bool checkStructuralSingularity();
113      const SingularityInfo &getSingularityInfo() const;      const SingularityInfo &getSingularityInfo() const;
114  };  };

Legend:
Removed from v.774  
changed lines
  Added in v.775

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22