22 #ifndef _ADUN_IOMANAGER_
23 #define _ADUN_IOMANAGER_
25 #include <sys/types.h>
28 #include "AdunKernel/AdCommandInterface.h"
29 #include "AdunKernel/AdCoreCommand.h"
30 #include "AdunKernel/AdServerInterface.h"
32 #include "AdunKernel/AdFrameworkFunctions.h"
33 #include "AdunKernel/AdunSimulationData.h"
34 #include "AdunKernel/AdunFileSystemSimulationStorage.h"
35 #include "AdunKernel/AdCoreAdditions.h"
82 BOOL simulationDataSent;
84 NSMutableDictionary* fileStreams;
88 NSString *controllerDir;
89 NSString *extensionDir;
91 NSString* controllerOutputDir;
94 NSProcessInfo *adunInfo;
101 NSProtocolChecker* checkerInterface;
115 - (BOOL) processCommandLine: (NSError**) error;
124 - (BOOL) restartRequested;
130 - (void) saveResults: (NSArray*) anArray;
137 - (void) setSimulationReferences: (NSDictionary*) inputObjects;
141 - (void) setCore: (
id) core;
145 - (NSMutableArray*) pluginsPaths;
149 - (NSString*) simulationOutputDirectory;
153 - (NSString*) controllerOutputDirectory;
157 - (NSString*) controllerDirectory;
161 - (NSString*) adunDirectory;
166 - (NSDictionary*) template;
171 - (NSDictionary*) externalObjects;
181 - (FILE*) openFile: (NSString*) file usingName: (NSString*) name flag: (NSString*) fileFlag;
188 - (FILE*) getStreamForName: (NSString*) name;
193 - (void) closeStreamWithName: (NSString*) name;
197 - (void) closeAllStreams;
219 - (BOOL) connectToServer: (NSError**) error;
234 - (void) sendControllerResults: (NSArray*) anArray;
241 - (void) closeConnection: (NSError*) error;
260 - (BOOL) loadData: (NSError**) error;
274 - (BOOL) createLogFiles: (NSError**) error;
280 - (BOOL) moveLogFilesTo: (NSString*) dataDirectory error: (NSError**) error;
297 - (BOOL) checkProgramDirectories: (NSError**) error;
301 - (BOOL) createSimulationOutputDirectory: (NSError**) error;
305 - (BOOL) createControllerOutputDirectory: (NSError**) error;