// // Document.h // XMLTest // // Created by Ashley on 10/04/2007. // Copyright 2007 __MyCompanyName__. All rights reserved. // #import #import "EXPSheet.h" #import "EXPParameterElement.h" #import "EXPFlowElement.h" #import "EXPStateElement.h" #import "EXPAuxiliaryElement.h" #import "EXPFunctionElement.h" #import "EXPExpression.h" #import "EXPExpressionList.h" #import "EXPStackMachine.h" #import "history_protocol.h" #import "PLTMatrix.h" @interface EXPModel : NSObject { NSMutableDictionary *_elements; NSMutableArray *_sheets; NSString *_graphicsDevice; NSString *_graphicsFile; id _history; EXPStackMachine *_machine; NSArray *_delays; NSArray *_switchAddresses; NSArray *_mapAddresses; unsigned int _rhsStartLocation; unsigned int _initstateStartLocation; int _nHistory; long _histSize; double _t0; double _t1; double _dt; double _eps; double _outputStep; // PLTMatrix *_yValues; // PLTMatrix *_auxValues; PLTMatrix *_outputValues; int _outputCounter; } - (void) loadFromXMLFile:(NSString *)file; - (BOOL) loadFromDDEData:(NSData *)data encoding:(NSStringEncoding)encoding; - (int) nVariables; - (id) sheets; - (void) insertSheet:(EXPSheet *)sheet atIndex:(int)index; - (BOOL) processOption:(EXPParser *)parser; - (void) setMachine:(id)machine; - (id) machine; - (void) setDelays:(id)delays; - (id) delays; - (void) setSwitchAddresses:(id)switchAddresses; - (id) switchAddresses; - (void) setMapAddresses:(id)mapAddresses; - (id) mapAddresses; - (void) setRhsStartLocation:(unsigned int)location; - (unsigned int) rhsStartLocation; - (void) setInitstateStartLocation:(unsigned int)location; - (unsigned int) initstateStartLocation; - (void) compile; /*- (void) setAuxValues:(PLTMatrix *) auxValues; - (id) auxValues; - (void) setYValues:(PLTMatrix *) yValues; - (id) yValues; */ - (void) setOutputValues:(PLTMatrix *) tValues; - (id) outputValues; - (void) setOutputCounter:(int)outputCounter; - (int) outputCounter; - (void) setGraphicsDevice:(id) graphicsDevice; - (id) graphicsDevice; - (void) setGraphicsFile:(id) graphicsFile; - (id) graphicsFile; - (void) print; - (void) plot; - (void) handleError:(NSError *)err; - (long) histSize; - (void) sethistSize:(long) histSize; - (double) t0; - (void) setT0:(double) t0; - (double) t1; - (void) setT1:(double) t1; - (double) dt; - (void) setDt:(double) dt; - (double) eps; - (void) setEps:(double) eps; - (double) outputStep; - (void) setOutputStep:(double)outputStep; - (void) setHistory:(id )history; - (id) history; - (void) setNHistory:(int)nHistory; - (int) nHistory; - (long) histSize; - (int) nLag; - (int) nSwitches; - (void) output:(double *)s time:(double)t; - (void) initConstants; @end