cz.cuni.jagrlib.eval
Class Ex2005_02_a

java.lang.Object
  extended by cz.cuni.jagrlib.eval.DefaultPlugin
      extended by cz.cuni.jagrlib.eval.Ex2005_02_a
All Implemented Interfaces:
EvalPlugin

public class Ex2005_02_a
extends DefaultPlugin

Evaluation plugin for MainEval: exercise 02, lines with non-integer coordinates, w/o antialiasing.

Since:
0.24
See Also:
MainEval, Ex2005_02_a.java

Field Summary
protected static java.lang.String CX
          Circle center.
protected static java.lang.String CY
           
protected static java.lang.String HALF
          Allow lines going exactly through half-points?
protected static java.lang.String RAD
          Circle radius.
protected static java.lang.String REPEAT
          Number of items to draw.
protected static java.lang.String SEED1
          Random seed (for RandomJames).
protected static java.lang.String SEED2
           
 
Fields inherited from class cz.cuni.jagrlib.eval.DefaultPlugin
HTML
 
Fields inherited from interface cz.cuni.jagrlib.eval.EvalPlugin
BASE, CLASS_NAME, OUTPUT_FILE_NAME
 
Constructor Summary
Ex2005_02_a()
           
 
Method Summary
 boolean runTest(java.util.Map<java.lang.String,java.lang.String> env, java.util.Map<java.lang.String,java.lang.String> param, java.io.PrintStream out)
          Runs one instance of the test (simple variant, w/o global result storage).
 
Methods inherited from class cz.cuni.jagrlib.eval.DefaultPlugin
booleanParam, createResults, doubleParam, integerParam, interpretResults, runTest, stringParam
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REPEAT

protected static final java.lang.String REPEAT
Number of items to draw.

See Also:
Constant Field Values

SEED1

protected static final java.lang.String SEED1
Random seed (for RandomJames).

See Also:
Constant Field Values

SEED2

protected static final java.lang.String SEED2
See Also:
Constant Field Values

CX

protected static final java.lang.String CX
Circle center.

See Also:
Constant Field Values

CY

protected static final java.lang.String CY
See Also:
Constant Field Values

RAD

protected static final java.lang.String RAD
Circle radius.

See Also:
Constant Field Values

HALF

protected static final java.lang.String HALF
Allow lines going exactly through half-points?

See Also:
Constant Field Values
Constructor Detail

Ex2005_02_a

public Ex2005_02_a()
Method Detail

runTest

public boolean runTest(java.util.Map<java.lang.String,java.lang.String> env,
                       java.util.Map<java.lang.String,java.lang.String> param,
                       java.io.PrintStream out)
Runs one instance of the test (simple variant, w/o global result storage).

Specified by:
runTest in interface EvalPlugin
Overrides:
runTest in class DefaultPlugin
Parameters:
env - Environment map (global params).
param - Individual params.
out - Text stream for output messages.
Returns:
True if test was successful, false in case of fatal error (instantiation, e.g.).