forked from tslarkin/Mercury
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AppController.h
executable file
·58 lines (44 loc) · 1.31 KB
/
AppController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//
// AppController.h
// Hernix
//
// Created by Timothy Larkin on 3/2/07.
// Copyright 2007 Abstract Tools. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <sys/time.h>
@class HMPart;
@interface AppController : NSObject {
double dt;
NSArray *space;
NSMutableArray *openFiles;
NSMutableArray *writers;
int iterations, reportStep;
NSDate *startDay;
NSMutableArray *steppers;
suseconds_t time;
}
- (int)reportStep;
- (double)dt;
- (void)setDt:(double)aDt;
- (NSDate*)startDay;
- (void)setStartDay:(NSDate*)aStartDay;
- (void)setOutputFile:(FILE*)file ofPort:(NSString*)portName ofPart:(NSString*)partName;
- (void)setOutputFile:(FILE*)file forPath:(NSString*)path;
- (NSString*)defaultOutputPath;
- (void)setupOutputsFromRecordersUsingPath:(NSString*)pathName;
- (NSArray *)space;
- (void)setSpace:(NSArray *)aSpace;
- (NSMutableArray *)openFiles;
- (void)setOpenFiles:(NSMutableArray *)anOpenFiles;
- (void)addOpenFile:(id)anOpenFile;
- (void)removeOpenFile:(id)anOpenFile;
- (void)runSimulation:(NSString*)setupPath;
-(void)runOneSimulationStep:(int)i atCoordinates:(NSString*)coordinates;
- (NSMutableArray *)writers;
- (void)setWriters:(NSMutableArray *)aWriters;
- (NSMutableArray *)steppers;
- (void)setSteppers:(NSMutableArray *)aSteppers;
- (void)initializeModel;
- (void)awakeModel;
@end