#import "Sine.h"

@implementation Sine
 
- (double)amplitude {return amplitude;}

- (double)frequency {return frequency;}

- setAmplitude:(double)value{
	amplitude=value;
	return self;
}
- setFrequency:(double)value{
	frequency=value;
	return self;
}

- compute
{
	/*  Here is where this object would "do its thing" based on the parameter
		values set via the inspector.  In this example, we do nothing... */
	return self;
}

- (const char *)getInspectorClassName
{
	return "SineInspector";
}

- setLabel:(const char *)aString
{
	if(label)NXZoneFree([self zone],label);
	label=NXCopyStringBufferFromZone(aString,[self zone]);
	return self;
}

- (const char *)label {return label;}

@end