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
Version:
0.26 $Rev: 816 $ $Date: 2008-10-28 22:02:08 +0100 (Ășt, 28 X 2008) $ $Author: pepca $
See Also:
MainEval, Ex2006_48_a.java

Field Summary
protected static String ANTI_ALIAS
          Use anti-aliasing?
protected static String ARR_NUMBER
           
protected static String ARR_RADIUS
          III - arrows parameters.
protected static String FAN_NUMBER
          II - big fan parameters.
protected static String RESOLUTION
          Image resolution.
protected static String SEED1
          Random seed (for RandomJames).
protected static String SEED2
           
protected static 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(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

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_NUMBER

protected static final String STAR_NUMBER
I - big star parameters.

See Also:
Constant Field Values

FAN_NUMBER

protected static final String FAN_NUMBER
II - big fan parameters.

See Also:
Constant Field Values

ARR_RADIUS

protected static final String ARR_RADIUS
III - arrows parameters.

See Also:
Constant Field Values

ARR_NUMBER

protected static final 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(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.).