// // MPT_Rubios.h // MPT_Rubios // // Created by Andrew Salamon on 12/18/07. // Copyright 2007 Machine Perception Laboratory, University of California San Diego. All rights reserved. // #import #import #import @class MPT_StatusView; @interface MPT_Rubios : MPT_PluginBase { IBOutlet NSView *prefView; IBOutlet MPT_StatusView *statusView; NSString *server; unsigned short port; NSString *robotName; NSString *nodeName; NSString *password; NSString *outputNodes; NSString *status; BOOL includeLabels; NSTimer *pingTimer; NSSocketPort *serverSocket; NSFileHandle *socketHandle; NSMutableString *messageBuffer; NSArray *pluginIDOrder; // plugin ID's (strings) NSDictionary *pluginLabels; // keys: plugin ID's (strings); values: arrays of labels (array of strings) or plugin display name (string) BOOL shouldBeConnected; // only used internally during the init process. BOOL okToSend; // We don't want to send data until after we're registered, even though connected is YES. } - (IBAction)connect:(id)sender; - (IBAction)disconnect:(id)sender; - (BOOL)connected; - (NSString *)server; - (void)setServer:(NSString *)value; - (unsigned short)port; - (void)setPort:(unsigned short)value; - (NSNumber *)portNumber; - (void)setPortNumber:(NSNumber *)value; - (NSString *)nodeName; - (NSString *)robotName; - (void)setRobotName:(NSString *)value; - (void)setNodeName:(NSString *)value; - (NSString *)password; - (void)setPassword:(NSString *)value; - (NSString *)outputNodes; - (void)setOutputNodes:(NSString *)value; - (NSString *)status; - (void)setStatus:(NSString *)value; - (BOOL)includeLabels; - (void)setIncludeLabels:(BOOL)value; - (void)updatePrefs; - (void)restoreFromPrefs; - (void)sendMessageToRUBIOS:(NSString *)msg; -(long long)currentTimeMillis; @end