Fixed issues with compilation.
[IRC.git] / Robust / src / Benchmarks / Scheduling / GC / NON_BAMBOO / RayTracer / Scene.java
1 package RayTracer;
2
3 /**************************************************************************
4  *                                                                         *
5  *             Java Grande Forum Benchmark Suite - Version 2.0             *
6  *                                                                         *
7  *                            produced by                                  *
8  *                                                                         *
9  *                  Java Grande Benchmarking Project                       *
10  *                                                                         *
11  *                                at                                       *
12  *                                                                         *
13  *                Edinburgh Parallel Computing Centre                      *
14  *                                                                         *
15  *                email: epcc-javagrande@epcc.ed.ac.uk                     *
16  *                                                                         *
17  *                 Original version of this code by                        *
18  *            Florian Doyon (Florian.Doyon@sophia.inria.fr)                *
19  *              and  Wilfried Klauser (wklauser@acm.org)                   *
20  *                                                                         *
21  *      This version copyright (c) The University of Edinburgh, 1999.      *
22  *                         All rights reserved.                            *
23  *                                                                         *
24  **************************************************************************/
25
26
27
28 //import java.util.Vector;
29
30 public class Scene 
31 //implements java.io.Serializable
32 {
33   public final Vector lights;
34   public final Vector objects;
35   private View view;  
36
37   public Scene ()
38   {
39     this.lights = new Vector ();
40     this.objects = new Vector ();        
41   }
42
43   public void addLight(Light l)
44   {
45     this.lights.addElement(l);
46   }
47
48   public void addObject(Primitive object)
49   {
50     this.objects.addElement(object);
51   }
52
53   public void setView(View view)
54   {
55     this.view = view;
56   }
57
58   public View getView()
59   {
60     return this.view;
61   }
62
63   public Light getLight(int number)
64   {
65     return (Light) this.lights.elementAt(number);
66   }
67
68   public Primitive getObject(int number)
69   {
70     return (Primitive) objects.elementAt(number);
71   }
72
73   public int getLights()
74   {
75     return this.lights.size();
76   }
77
78   public int getObjects()
79   {
80     return this.objects.size();
81   }
82
83   public void setObject(Primitive object, int pos)
84   {
85     this.objects.setElementAt(object, pos);
86   }
87 }
88
89
90
91