cxbrooks / test

Second test for bugzilla to git
0 stars 0 forks source link

Code Generation for Modal Models #238

Open cxbrooks opened 13 years ago

cxbrooks commented 13 years ago

Note: the issue was created automatically with bugzilla2github tool

Original bug ID: BZ#358 From: @cxbrooks Reported version: 8.1.devel CC: pt-dev@chess.eecs.berkeley.edu

cxbrooks commented 13 years ago

Enhance the cg code generator to generate code for modal models. We had limited support for this in $PTII/ptolemy/codegen, we need to finish the port to $PTII/ptolemy/cg.

cxbrooks commented 13 years ago

Currently: $PTII/bin/ptcg -language java /Users/cxh/ptII/ptolemy/domains/modal/test/auto/Blending.xml fails with:

Cannot resolve codegen type from Ptolemy type: unknown Wrote /Users/cxh/cg/Array.java Wrote /Users/cxh/cg/Token.java Writing Blending.java in file:/Users/cxh/cg/ (47930 characters) Wrote /Users/cxh/cg/Blending.java Reading "ptolemy/cg/kernel/generic/program/procedural/java/makefile.in", writing "/Users/cxh/cg/Blending.mk" In "/Users/cxh/cg", about to execute: make -f Blending.mk javac -classpath ".::." Blending.java Blending.java:667: cannot find symbol symbol : variable Blending_BlendingController_mode_controllerControllercurrentState location: class Blending Blending_BlendingController_mode_controllerControllercurrentState = STATE_Blending_BlendingController_mode_controller_Mode_A; ^ Blending.java:667: cannot find symbol symbol : variable STATE_Blending_BlendingController_mode_controller_Mode_A location: class Blending Blending_BlendingController_mode_controllerControllercurrentState = STATE_Blending_BlendingController_mode_controller_Mode_A; ^ Blending.java:775: cannot find symbol symbol : variable Blending_BlendingController_input location: class Blending Blending_BlendingController_input = temporary; ^ 3 errors make: *** [Blending.class] Error 1 All Done