Sharing Pedagogy with Java
Let's begin by looking at a particular teaching problem I have. Wave motion of all types, including those on the surface of a body of water, can be decomposed into trains of sinusoidal waves which propagate at different speeds and amplitudes. If the frequencies of these waves are similar, the wave motion is characterized by wave groups. In the simplest case of a wave group, take two waves that propagate at nearly the same speed, while the group they create by superposition travels at a different speed (depending on water depth for water waves). Now, how do you clearly present this concept to a class?
Or, on the other hand, what happens when the two wave trains are traveling in opposite directions? Is there a wave group? If the two oppositely directed wave trains have the same frequency, a standing wave system results with no propagation of energy. How do you conveniently introduce these latter variations on the same theme?
Finally, what happens when more wave trains are added or when a wave group reflects back onto itself?
The traditional method of explaining these ideas to a class is to take chalk in hand and draw pictures illustrating the concepts. These pictures, however carefully drawn, are static and fail to transmit the idea that the waves and wave groups are dynamic entities, moving at different speeds and superimposing to create the resulting wave forms.
An alternate method is to use a graphical computer program, allowing students to see the result of superimposing wave trains with any frequencies, amplitudes and directions they wish. By trying different combinations of wave amplitudes, directions and wave periods, students can empirically discover the behavior of the water surface. Also, by allowing them to see the separate wave component waves, it is clear, for example, that a standing wave is comprised of two oppositely directed progressive wave trains.
The graphical program I use to demonstrate this concept and more than a dozen others was developed with Java on my Linux computer. By writing these programs as applets, they are available via the Internet to students with a Java-enabled browser (preferably Netscape Navigator), to use in classroom instruction, or for anyone who is curious about waves and coastal processes.
In the traditional model of university instruction, a professor develops the notes for a course. A textbook is often used to provide either a structure to the course material or to augment the professor's lectures. These textbooks thus provide a passive means of utilizing the expertise of another individual to augment the professor's own knowledge, or they contain a desirable format or outline for presenting the material. However, the textbook forces the instructor to adopt most, if not all, of the author's style or approach to a subject. A major financial commitment is made by the students, who must invest in one or more texts.
Java and the Internet provide another avenue of utilizing other pedagogies without making a large investment of time or money in someone else's approach. In addition, the applets can provide useful graphical and computational tools.
The applets discussed here are provided on the Internet (address given in the following section) and are used by a number of other professors around the world to augment classroom instruction as homework, and as laboratory experiments for courses in water wave theory and coastal processes. They were written to support two graduate courses taught at the University of Delaware. Each applet illustrates a single concept, such as the particle motions and velocities under a wave of the user's choice. By typing in new data, the user can explore different scenarios, such as the nonlinear influence of wave height on water wave speed (Stream Function Wave Theory applet).
Using Java-enabled web browsers, these programs can be run locally by accessing my web site that hosts the applet code. As an alternative, these programs can also be provided as applications, which run locally on the user's machine equipped with Java—especially easy for Linux machines that recognize Java byte code.
My contribution is the Java Applets for Coastal Engineering site that I have developed. This web site provides Java applets which can assist in the teaching of water waves and coastal processes and provide useful tools for others. The applets are hosted at http://www.coastal.udel.edu/faculty/rad/ on my Coastal Engineering Java Page. The index.html page at this URL lists the titles of the applets, a terse description of their purposes, and dates that indicate when the Java code for the applet and the HTML page was last modified. Clicking on an applet title on the list results in the applet running on the user's computer. The applet generally consists of several graphical windows: the first allows the user to input data to the applet and the second shows the results of the computation. In addition, HTML text associated with the applet provides a description of the use of the applet, the concepts it illustrates, and some idea of this theory in the Java program.
Once compiled, all the program elements become separate code segments, referred to as classes. These elements have been converted by the compiler into machine-independent byte code, which is downloaded by clicking on the applet's name on the Coastal Engineering Java Page. The user's browser converts the byte code into a local version of the applet, which then runs on his/her machine. The load on my machine is the downloading of the byte code.
While the web site is hosted by a Sun workstation, the programming and debugging was done with a PC running Linux and the Linux port of Java. The site, http://www.blackdown.org/, has the latest information on the Linux port of Java, an HTML version of the Java-Linux HOW-TO and a list of mirror sites for downloading the Java Development Kit (now JDK 1.1.5). Another reference is the October 1996 issue of Linux Journal (http://www.linuxjournal.com/issue30/), which had a number of articles on Java.
|Dynamic DNS—an Object Lesson in Problem Solving||May 21, 2013|
|Using Salt Stack and Vagrant for Drupal Development||May 20, 2013|
|Making Linux and Android Get Along (It's Not as Hard as It Sounds)||May 16, 2013|
|Drupal Is a Framework: Why Everyone Needs to Understand This||May 15, 2013|
|Home, My Backup Data Center||May 13, 2013|
|Non-Linux FOSS: Seashore||May 10, 2013|
- Dynamic DNS—an Object Lesson in Problem Solving
- Making Linux and Android Get Along (It's Not as Hard as It Sounds)
- Using Salt Stack and Vagrant for Drupal Development
- New Products
- Validate an E-Mail Address with PHP, the Right Way
- Drupal Is a Framework: Why Everyone Needs to Understand This
- A Topic for Discussion - Open Source Feature-Richness?
- The Secret Password Is...
- RSS Feeds
- New Products
- All the articles you talked
18 sec ago
4 hours 25 min ago
- Keeping track of IP address
6 hours 16 min ago
- Roll your own dynamic dns
11 hours 29 min ago
- Please correct the URL for Salt Stack's web site
14 hours 40 min ago
- Android is Linux -- why no better inter-operation
16 hours 56 min ago
- Connecting Android device to desktop Linux via USB
17 hours 24 min ago
- Find new cell phone and tablet pc
18 hours 22 min ago
19 hours 51 min ago
- Automatically updating Guest Additions
21 hours 15 sec ago
Enter to Win an Adafruit Pi Cobbler Breakout Kit for Raspberry Pi
It's Raspberry Pi month at Linux Journal. Each week in May, Adafruit will be giving away a Pi-related prize to a lucky, randomly drawn LJ reader. Winners will be announced weekly.
Fill out the fields below to enter to win this week's prize-- a Pi Cobbler Breakout Kit for Raspberry Pi.
Congratulations to our winners so far:
- 5-8-13, Pi Starter Pack: Jack Davis
- 5-15-13, Pi Model B 512MB RAM: Patrick Dunn
- 5-21-13, Prototyping Pi Plate Kit: Philip Kirby
- Next winner announced on 5-27-13!
Free Webinar: Hadoop
How to Build an Optimal Hadoop Cluster to Store and Maintain Unlimited Amounts of Data Using Microservers
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Some of key questions to be discussed are:
- What is the “typical” Hadoop cluster and what should be installed on the different machine types?
- Why should you consider the typical workload patterns when making your hardware decisions?
- Are all microservers created equal for Hadoop deployments?
- How do I plan for expansion if I require more compute, memory, storage or networking?