2bfc1671c9b74874417f60574ff091a204a493f5
[enjoyable.git] / NJOutput.h
1 //
2 // NJOutput.h
3 // Enjoy
4 //
5 // Created by Sam McCall on 5/05/09.
6 // Copyright 2009 University of Otago. All rights reserved.
7 //
8
9 @class NJInputController;
10
11 @interface NJOutput : NSObject
12
13 @property (nonatomic, assign) float magnitude;
14 @property (nonatomic, assign) BOOL running;
15 @property (nonatomic, readonly) BOOL isContinuous;
16
17 - (void)trigger;
18 - (void)untrigger;
19 - (BOOL)update:(NJInputController *)jc;
20
21 - (NSDictionary *)serialize;
22 + (NJOutput *)outputDeserialize:(NSDictionary *)serialization
23 withMappings:(NSArray *)mappings;
24 + (NSString *)serializationCode;
25
26 @end