/[ascend]/trunk/pygtk/relation.cpp
ViewVC logotype

Diff of /trunk/pygtk/relation.cpp

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

revision 735 by johnpye, Wed Jul 5 02:42:19 2006 UTC revision 736 by johnpye, Wed Jul 5 04:56:26 2006 UTC
# Line 60  const int Line 60  const int
60  Relation::getNumIncidentVariables() const{  Relation::getNumIncidentVariables() const{
61      return rel_n_incidences(rel);      return rel_n_incidences(rel);
62  }  }
63    
64    Instanc
65    Relation::getInstance() const{
66        return Instanc((struct Instance *)rel_instance(rel));
67    }
68    
69    string
70    Relation::getRelationAsString() const{
71        if(sim==NULL){
72            throw runtime_error("Simulation not set");
73        }
74        return getInstance().getRelationAsString(sim->getModel());
75    }
76    

Legend:
Removed from v.735  
changed lines
  Added in v.736

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