Professional Documents
Culture Documents
www.elsevier.com/locate/cpc
Abstract
We introduce Easy Java Simulations, Ejs, a tool created by science teachers to help teach and learn science. Ejs allows users
to create simulations using their knowledge of the scientific model. The author needs to supply a small amount of code for the
model; the tool provides a graphical drag-and-drop interface to build the program. The resulting Ejs generated program is an
independent, high quality Java application or applet ready to be published on a Web server. Ejs can serve as an effective teaching
and learning tool if used in an appropriate pedagogical setting; for instance, to help students create their own simulations in
order to express their conceptions on how a given scientific process works.
The Ejs program and documentation can be freely downloaded from the site http://fem.um.es/Ejs.
2003 Elsevier B.V. All rights reserved.
1. Introduction
Simulations are playing an increasingly important
role in the way we teach or do science. This is
specially true in education, where computers are being
used more and more as a way to make lectures more
attractive to students and to help achieve a deeper
understanding of the subject being taught. However,
it cannot be said that computer simulations are used
by most teachers. In many cases, this is due to the fact
that teachers are reluctant to use a technology they do
not fully understand or control. In many others, that
they cannot find a product that completely meets their
educational needs.
A good solution to both problems is to help teachers create their own simulations. We have found that,
E-mail address: fem@um.es (F. Esquembre).
0010-4655/$ see front matter 2003 Elsevier B.V. All rights reserved.
doi:10.1016/S0010-4655(03)00440-5
by creating a simulation, many teachers get a new perspective of the phenomenon they are trying to explain,
which almost always increases their enthusiasm for the
use of this technology with their students. An alternative approach, and a very promising one, is to let
students create their own simulations, thus engaging
in what is called by educational researchers constructive modeling [1]. This has the advantage of getting
students to do science in an exploratory and constructive way, achieving many of the recommended bestpractices in the classroom [2].
Creating a simulation by oneself requires extra effort. The starting point, and this is the important part,
is a full understanding of the phenomenon being simulated. From this, some (sometimes a lot of!) technicalities are needed in order to express the behavior of
the phenomenon in computer form.
200
2. Structure of a simulation
Easy Java Simulations helps create discrete computer simulations. A discrete computer simulation, or
simply a computer simulation, is a computer program
that tries to reproduce, for pedagogical or scientific
purposes, a natural phenomenon through the visualization of the different states that it can have. Each
of these states is described by a set of variables that
change in time due to the iteration of a given algorithm.
Ejs provides a simplified implementation of the
Model-Control-View design pattern and tools that help
create each of these parts. This paradigm states that a
simulation is composed of three parts:
The model, which describes the phenomenon
under study in terms of
variables, that hold the different possible states
of the phenomenon,
interrelationships among these variables (corresponding to the laws that govern the phenomenon), expressed by computer algorithms.
The control, which defines certain actions that a
user can perform on the simulation.
The view, which shows a graphical representation
of the different states that the phenomenon can
have. This representation can be done in a realistic
or schematic form, but in such a way that the
user appreciates the most relevant aspects of the
simulated phenomenon.
These three parts are deeply interconnected. The
model obviously affects the view, since a change in the
state of the model must be made graphically evident
to the user. The control affects the model because
control actions can (and usually do) modify the value
of variables of the model. Finally, the view affects the
model and the control, because the graphical interface
can contain components that allow the user to modify
variables or perform the predefined actions.
Indeed, modern computer programs are interactive,
which means that the user can modify the programs
logic by clicking or dragging the mouse, hitting the
keyboard or a button on the programs interface (or
view). Thus, the view itself can be used to control the
simulation.
201
In order to encourage authors to provide instructions and explanatory narrative as an integral part of
their simulations, Ejs provides a special-purpose interface that helps create a collection of html pages in
a WYSIWYG (what you see is what you get) editor.
The author can then create as many html pages as (s)he
wants (similar to the one shown in Fig. 2) with the necessary information and/or instructions for the students
as (s)he finds necessary for the pedagogical objectives
of the simulation.
Ejs will not only create the necessary program files,
but will also use these information pages to create a
whole structured set of html pages that includes a page
with the simulation embedded as a Java applet.
The result is a complete pedagogical setting: narration plus simulation that can be readily published on a
web server.
3.2. Creating the model
We create the model of a phenomenon when we define what its relevant quantities (or, in programming
terminology, variables) are, set their values at a given
initial moment, and establish the rules that govern how
202
203
204
Acknowledgements
I would like to thank Wolfgang Christian for
introducing me to the Open Source Physics project, on
which Ejs is based. I would also like to thank Fu-Kwun
Hwang for continuous and fruitful discussions on the
use of Ejs as well as for his contributions to the latest
code. Part of this work is supported by Fundacin
Sneca, the Center for Coordination of Research of the
Region of Murcia, Spain.
References
[1] J. Nersessian, Should physicists preach what they practice?, Sci.
Educ. 4 (1995) 203226.
[2] L.M. Lederman, American renaissance in science education,
FERMILAB-TM-2051, 1998.
[3] M. Euler, A. Mller, Physics learning and the computer:
A review, with a taste of meta-analysis, in: Research in Science
EducationPast, Present, Future, IPN, Kiel, 1999.
[4] H. Gould, J. Tobochnik, W. Christian, An Introduction to
Computer Simulation Methods, 3rd edn., in preparation; See
also http://sip.clarku.edu/3e/.
[5] W. Christian, M. Belloni, An open source library for science
and mathematics teachers and curriculum authors, this issue;
See also http://www.opensourcephysics.org.
[6] F. Esquembre, Easy Java simulations web pages, http://fem.
um.es/Ejs.
[7] F. Esquembre, Computers in physics education, Comput. Phys.
Comm. 147 (2002) 1318.
[8] R.R. Hake, Towards paradigm peace in physics education
research, Presented at the Annual Meeting of the American
Educational Research Association, New Orleans, April 2000.