AMRandomValue Class Reference

A generic randomized value. More...

#import <AMRandomValue.h>

Inheritance diagram for AMRandomValue:

AMValue

List of all members.

Public Member Functions

(id) - initWithMinValue:maxValue:interval:
 Creates a new random value object.
(id) - initWithMinValue:maxValue:
 Creates a new random value object.
(double) - calcValue
 Generates a new value.

Properties

double minValue
 The minimum value.
double maxValue
 The maximum value.
double interval
 The interval between random generated values.


Detailed Description

A generic randomized value.

Member Function Documentation

- (double) calcValue  

Generates a new value.

The interval value returned by the getValue() function is also updated.

Returns:
The generated value.

Reimplemented from AMValue.

- (id) initWithMinValue: (double)  _minValue
maxValue: (double)  _maxValue 

Creates a new random value object.

Parameters:
minValue The minimum generated value.
maxValue The upper limit for the generated value.
Returns:
The created random value object.

- (id) initWithMinValue: (double)  _minValue
maxValue: (double)  _maxValue
interval: (double)  _interval 

Creates a new random value object.

Parameters:
minValue The minimum generated value.
maxValue The upper limit for the generated value.
interval The interval between generated values.
Returns:
The created random value object.


Property Documentation

- (double) interval [read, write, assign]

The interval between random generated values.

- (double) maxValue [read, write, assign]

The maximum value.

- (double) minValue [read, write, assign]

The minimum value.


The documentation for this class was generated from the following files:

Generated on Mon May 16 16:29:48 2011 for ARIA by  doxygen 1.5.9