|
Building Parsers with Java | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--sjm.examples.sling.SlingFunction
|
+--sjm.examples.sling.Ceil
This class wraps a ceil function around another source function.
The ceil function applied to a number x returns the smallest integer that is equal to or greater than x.
| Fields inherited from class sjm.examples.sling.SlingFunction |
source |
| Constructor Summary | |
Ceil()
Constructs ceil(t). |
|
Ceil(SlingFunction source)
Constructs a function object that wraps a ceil function around the given source function. |
|
| Method Summary | |
Point |
f(double t)
Returns, essentially, ceil(source.f(t)). |
java.lang.String |
toString()
Returns a string representation of this function. |
| Methods inherited from class sjm.examples.sling.SlingFunction |
eval,
extrema,
fresh |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public Ceil()
ceil(t).public Ceil(SlingFunction source)
| Method Detail |
public Point f(double t)
ceil(source.f(t)).t - a number that represents how far along a plot
is, and thus tells which point to return(t, ceil(source.f(t).y))Abs,
Abs.f(double)public java.lang.String toString()
|
by Steve Metsker | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||