IVariable implementation

In our current proposal variables and parameters are described by one single interface: IVariable. The reson being that parameters and variables have a lot in common with each other and the appealing prospect of having a single interface to learn.

The methods that are in common are the following:

Beside the above structure, variables and parameters are completely disjoined entities and the consequence is that other methods apply only to either one or the other.

The following methods are for variables only:

while the following only apply to parameters:

Finally these two are needed to separate a variable from a parameter:

Alternative implementation

where IValue looks like:

and IValueWithRange:

where IRange has now the methods that were added above to IValueWithRange.

Version: $Id: varVsPar.shtml,v 1.6 2002/03/26 02:52:15 tonyj Exp $