Data/Feature.m

00001 //
00002 //  Feature.m
00003 //  MacTrek
00004 //
00005 //  Created by Aqua on 26/04/2006.
00006 //  Copyright 2006 Luky Soft. All rights reserved.
00007 //
00008 
00009 #import "Feature.h"
00010 
00011 
00012 @implementation Feature
00013 
00014 - (id) init {
00015     self = [super init];
00016     if (self != nil) {
00017         name = nil;
00018         type = 'r';
00019         desired_value = 0;
00020         send_with_rsa = NO;
00021         arg1 = 0;
00022         arg2 = 0;
00023     }
00024     return self;
00025 }
00026 
00027 - (id) initWithName:(NSString *)nam type:(char)t desiredValue:(int)val sendWithRSA:(bool) rsa {
00028     self = [self init];
00029     if (self != nil) {
00030         name = nam;
00031         type = t;
00032         desired_value = val;
00033         send_with_rsa = rsa;
00034         value = val;
00035     }
00036     return self;
00037 }
00038 
00039 - (int) value {
00040     return value;
00041 }
00042 
00043 - (NSString*)name {
00044     return name;
00045 }
00046 
00047 - (char) type {
00048     return type;
00049 }
00050 
00051 - (int) desiredValue {
00052     return desired_value;
00053 }
00054 
00055 -(void) setValue:(int)val {
00056     value = val;
00057 }
00058 
00059 - (int) arg1 {
00060     return arg1;
00061 }
00062 
00063 - (int) arg2 {
00064     return arg2;
00065 }
00066 
00067 -(void) setArg1:(int)a1 {
00068     arg1 = a1;
00069 }
00070 
00071 -(void) setArg2:(int)a2 {
00072     arg2 = a2;
00073 }
00074 
00075 - (bool) sendWithRSA {
00076     return send_with_rsa;
00077 }
00078 
00079 @end

Generated on Sat Aug 26 21:14:10 2006 for MacTrek by  doxygen 1.4.7