Skip to content

Newton API specs

hyuglim edited this page Jan 17, 2017 · 10 revisions

The following will go into the header file for Newton API.

// void listOfProportionalPairs(Pair *pairs); // Don't think I need this... the caller should call checkSingleCosntraint at // appropriate times

// COMPILE OR RUN TIME METHODS Physics* getPhysics(char* physicsIdentifierString); Report* checkSingleConstraint(NewtonIrNode* subtreeRoot);

// SANITY MEHTODS NewtonIrNode* getAST(); Dimension* getAllDimensions(); Dimension* getDimensionByName(char * dimensionName); Physics* getAllPhysics(); Physics* getPhysicsByName(char * physicsName);

NewtonIrNode should have dimension, physics, values, type, source info, .. just reuse NoisyIrNode minus all the scope nodes

For the Newton Standard AST, we will just reuse NoisyIrNode minus all the scope nodes NewtonIrNode should have dimension, physics, values, type, source info, ..

Clone this wiki locally