All Packages Class Hierarchy This Package Previous Next Index
Class picture.ValueMapEntry
java.lang.Object
|
+----picture.ValueMapEntry
- public class ValueMapEntry
- extends Object
- implements Parsable
This parses a value map entry of the form [.5 1.5] which means
the piecewise linear function of the value map should map an
input of .5 to an output of 1.5;
This code is (c) 1996 Leemon Baird
<leemon@cs.cmu.edu>,
http://www.cs.cmu.edu/~baird
The source and object code may be redistributed freely.
If the code is modified, please state so in the comments.
- Version:
- 1.0, 20 April 96
- Author:
- Leemon Baird
-
x
- The input number that will be mapped to another number
-
y
- The output number to which the input number was mapped
-
ValueMapEntry()
-
-
BNF(int)
-
-
getParameters(int)
- Return a parameter array if BNF(), parse(), and unparse() are to be automated, null otherwise.
-
initialize(int)
- Initialize, either partially or completely.
-
parse(Parser, int)
- Parse the input file to get the parameters for this object.
-
unparse(Unparser, int)
- Output a description of this object that can be parsed with parse().
x
public NumExp x
- The input number that will be mapped to another number
y
public NumExp y
- The output number to which the input number was mapped
ValueMapEntry
public ValueMapEntry()
getParameters
public Object[][] getParameters(int lang)
- Return a parameter array if BNF(), parse(), and unparse() are to be automated, null otherwise.
- See Also:
- getParameters
BNF
public String BNF(int lang)
unparse
public void unparse(Unparser u,
int lang)
- Output a description of this object that can be parsed with parse().
- See Also:
- Parsable
parse
public Object parse(Parser p,
int lang) throws ParserException
- Parse the input file to get the parameters for this object.
- Throws: ParserException
- parser didn't find the required token
initialize
public void initialize(int level)
- Initialize, either partially or completely.
- See Also:
- initialize
All Packages Class Hierarchy This Package Previous Next Index