cz.cuni.jagrlib.eval
Class Ex2006_45_a

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

public class Ex2006_45_a
extends DefaultPlugin

Evaluation plugin for MainEval: exercises 45-46, polygon fill with or w/o anti-aliasing.

Since:
0.25
Version:
0.26 $Rev: 439 $ $Date: 2007-05-05 12:29:50 +0200 (so, 05 V 2007) $ $Author: pepca $
See Also:
MainEval, Ex2006_45_a.java

Field Summary
protected static String ANTI_ALIAS
          Use anti-aliasing?
protected static String ARR_RADIUS
          III - arrows parameters.
protected static String ARR_SIZE
           
protected static String FAN_MAX
           
protected static String FAN_MIN
          II - big fan parameters.
protected static String FAN_SIZE
           
protected static String OUT_PLUG
          Plug name.
protected static String RESOLUTION
          Image resolution.
protected static String RND_RADIUS
          IV - random polygons parameters.
protected static String RND_REPEAT
           
protected static String SEED1
          Random seed (for RandomJames).
protected static String SEED2
           
protected static String STAR_EXP
           
protected static String STAR_RAD1
          I - big star parameters.
protected static String STAR_RAD2
           
protected static String STAR_SIZE
           
 
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
Ex2006_45_a()
           
 
Method Summary
 boolean runTest(Map<String,String> env, Map<String,String> param, 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

ANTI_ALIAS

protected static final String ANTI_ALIAS
Use anti-aliasing?

See Also:
Constant Field Values

OUT_PLUG

protected static final String OUT_PLUG
Plug name.

See Also:
Constant Field Values

SEED1

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

See Also:
Constant Field Values

SEED2

protected static final String SEED2
See Also:
Constant Field Values

RESOLUTION

protected static final String RESOLUTION
Image resolution.

See Also:
Constant Field Values

STAR_RAD1

protected static final String STAR_RAD1
I - big star parameters.

See Also:
Constant Field Values

STAR_RAD2

protected static final String STAR_RAD2
See Also:
Constant Field Values

STAR_EXP

protected static final String STAR_EXP
See Also:
Constant Field Values

STAR_SIZE

protected static final String STAR_SIZE
See Also:
Constant Field Values

FAN_MIN

protected static final String FAN_MIN
II - big fan parameters.

See Also:
Constant Field Values

FAN_MAX

protected static final String FAN_MAX
See Also:
Constant Field Values

FAN_SIZE

protected static final String FAN_SIZE
See Also:
Constant Field Values

ARR_RADIUS

protected static final String ARR_RADIUS
III - arrows parameters.

See Also:
Constant Field Values

ARR_SIZE

protected static final String ARR_SIZE
See Also:
Constant Field Values

RND_RADIUS

protected static final String RND_RADIUS
IV - random polygons parameters.

See Also:
Constant Field Values

RND_REPEAT

protected static final String RND_REPEAT
See Also:
Constant Field Values
Constructor Detail

Ex2006_45_a

public Ex2006_45_a()
Method Detail

runTest

public boolean runTest(Map<String,String> env,
                       Map<String,String> param,
                       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.).