--- AttrPtg_1.1_0.java Mon May 27 00:28:38 2002 +++ AttrPtg_1.2_1.java Mon May 27 00:28:40 2002 @@ -191,9 +191,30 @@ return SIZE; } - public String toFormulaString() - { - return "SUM()"; + public String toFormulaString( + ) { + if(semiVolatile.isSet(field_1_options)) { + return "ATTR(semiVolatile)"; + } + if(optiIf.isSet(field_1_options)) { + return "IF"; + } + if( optiChoose.isSet(field_1_options)) { + return "CHOOSE"; + } + if(optGoto.isSet(field_1_options)) { + return "GOTO"; + } + if(sum.isSet(field_1_options)) { + return "SUM"; + } + if(baxcel.isSet(field_1_options)) { + return "ATTR(baxcel)"; + } + if(space.isSet(field_1_options)) { + return ""; + } + return "UNKNOWN ATTRIBUTE"; } public int getNumberOfOperands() @@ -207,9 +228,12 @@ } public String toFormulaString(String[] operands) { - return "SUM(" + operands[ 0 ] + ")"; - } - - - + if(space.isSet(field_1_options)) { + return operands[ 0 ]; + } + else { + return toFormulaString() + "(" + operands[ 0 ] + ")"; + } + } + }