cz.cuni.jagrlib.eval
Class Ex2006_48_a

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

public class Ex2006_48_a
extends DefaultPlugin

Evaluation plugin for MainEval: exercise 48, general polygon clipping.

Since:
0.25
See Also:
MainEval, Ex2006_48_a.java

Field Summary
protected static java.lang.String ANTI_ALIAS
          Use anti-aliasing?
protected static java.lang.String ARR_NUMBER
           
protected static java.lang.String ARR_RADIUS
          III - arrows parameters.
protected static java.lang.String FAN_NUMBER
          II - big fan parameters.
protected static java.lang.String RESOLUTION
          Image resolution.
protected static java.lang.String SEED1
          Random seed (for RandomJames).
protected static java.lang.String SEED2
           
protected static java.lang.String STAR_NUMBER
          I - big star parameters.
 
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_48_a()
           
 
Method Summary
protected  void makeFan(double x0, double y0, double r1, double r2, int n)
          Creates fan with given number of tips.
protected  void makeStar(double x0, double y0, double r1, double r2, double angle0, double exp, int n)
          Creates star with non-uniformly distributed tips.
 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

ANTI_ALIAS

protected static final java.lang.String ANTI_ALIAS
Use anti-aliasing?

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

RESOLUTION

protected static final java.lang.String RESOLUTION
Image resolution.

See Also:
Constant Field Values

STAR_NUMBER

protected static final java.lang.String STAR_NUMBER
I - big star parameters.

See Also:
Constant Field Values

FAN_NUMBER

protected static final java.lang.String FAN_NUMBER
II - big fan parameters.

See Also:
Constant Field Values

ARR_RADIUS

protected static final java.lang.String ARR_RADIUS
III - arrows parameters.

See Also:
Constant Field Values

ARR_NUMBER

protected static final java.lang.String ARR_NUMBER
See Also:
Constant Field Values
Constructor Detail

Ex2006_48_a

public Ex2006_48_a()
Method Detail

makeStar

protected void makeStar(double x0,
                        double y0,
                        double r1,
                        double r2,
                        double angle0,
                        double exp,
                        int n)
Creates star with non-uniformly distributed tips.


makeFan

protected void makeFan(double x0,
                       double y0,
                       double r1,
                       double r2,
                       int n)
Creates fan with given number of tips.


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.).