JSci.instruments
Class Simulated

java.lang.Object
  extended by JSci.instruments.Simulated
All Implemented Interfaces:
java.lang.Runnable, Control, Dimensions, ImageSource

 class Simulated
extends java.lang.Object
implements ImageSource, java.lang.Runnable


Field Summary
static double z
           
 
Constructor Summary
Simulated()
           
 
Method Summary
 java.awt.Component getControlComponent()
           
 int getHeight()
           
static boolean getOscillating()
           
 java.awt.Dimension getSize()
           
 int getWidth()
           
 void run()
           
static void setOscillating(boolean o)
           
 void setSink(ImageSink fs)
          set the object that must read the frames through receive() method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

z

public static double z
Constructor Detail

Simulated

public Simulated()
Method Detail

setSink

public void setSink(ImageSink fs)
set the object that must read the frames through receive() method.

Specified by:
setSink in interface ImageSource
Parameters:
fs - the object that reads the frames

run

public void run()
Specified by:
run in interface java.lang.Runnable

getWidth

public int getWidth()
Specified by:
getWidth in interface Dimensions
Returns:
the width of the image

getHeight

public int getHeight()
Specified by:
getHeight in interface Dimensions
Returns:
the height of the image

getSize

public java.awt.Dimension getSize()
Specified by:
getSize in interface Dimensions
Returns:
the dimension of the image

getControlComponent

public java.awt.Component getControlComponent()
Specified by:
getControlComponent in interface Control
Returns:
the component that controls the object that implements this interface

setOscillating

public static void setOscillating(boolean o)

getOscillating

public static boolean getOscillating()