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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
//
// CLIPSSlotValue.m
// CLIPS
//
// Created by Gary Riley on 3/19/06.
// Copyright 2006 __MyCompanyName__. All rights reserved.
//
#import "CLIPSSlotValue.h"
@implementation CLIPSSlotValue
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
/* Initialization/Deallocation Methods */
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
/**********************************/
/* initWithSlotName:andSlotValue: */
/**********************************/
- initWithSlotName: (NSString *) theSlotName
andSlotValue: (NSString *) theSlotValue
{
if (self = [super init])
{
[self setSlotName: theSlotName];
[self setSlotValue: theSlotValue];
}
return self;
}
/*%%%%%%%%%%%%%%%%%%%%%%%%%%*/
/* Key-Value Coding Methods */
/*%%%%%%%%%%%%%%%%%%%%%%%%%%*/
/****************/
/* setSlotName: */
/****************/
- (void) setSlotName: (NSString *) theSlotName
{
[theSlotName retain];
[slotName release];
slotName = theSlotName;
}
/*************/
/* slotName: */
/*************/
- (NSString *) slotName
{
return slotName;
}
/*****************/
/* setSlotValue: */
/*****************/
- (void) setSlotValue: (NSString *) theSlotValue
{
[theSlotValue retain];
[slotValue release];
slotValue = theSlotValue;
}
/**************/
/* slotValue: */
/**************/
- (NSString *) slotValue
{
return slotValue;
}
/**********************/
/* setDefaultedValue: */
/**********************/
- (void) setDefaultedValue: (BOOL) theDefaultedValue
{
defaultedValue = theDefaultedValue;
}
/*******************/
/* defaultedValue: */
/*******************/
- (BOOL) defaultedValue
{
return defaultedValue;
}
@end