All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pinball.part.MorseCode

java.lang.Object
   |
   +----pinball.part.MorseCode

public class MorseCode
extends Object
Send more code signals by flashing a light.


Variable Index

 o charSpace
Time between characters.
 o dash
Time for a dash.
 o dot
Time for a dot.
 o symbolSpace
Time betwen a symbol.
 o wordSpace
Time between words.

Constructor Index

 o MorseCode()
Send the signals.

Method Index

 o dash()
Send a dash.
 o dot()
Send a dot.
 o encodeChar(char)
Encode a character.
 o main(String[])
Send a signal.
 o message(String)
Send a message.
 o sendCharacters(String)
Send characters.
 o test(String)
Send a message.
 o transmit(String)
Send an encoded character.

Variables

 o dot
 public static int dot
Time for a dot.

 o symbolSpace
 public static int symbolSpace
Time betwen a symbol.

 o dash
 public static int dash
Time for a dash.

 o charSpace
 public static int charSpace
Time between characters.

 o wordSpace
 public static int wordSpace
Time between words.

Constructors

 o MorseCode
 public MorseCode()
Send the signals.

Methods

 o main
 public static void main(String args[])
Send a signal. The command line has the string to send. If nothing is given, the system sends the test message SOS.

 o test
 public void test(String string)
Send a message.

Parameters:
string - the message to send.
 o dot
 public void dot()
Send a dot.

 o dash
 public void dash()
Send a dash.

 o transmit
 public void transmit(String item)
Send an encoded character.

Parameters:
item - the character to send.
 o encodeChar
 public void encodeChar(char character)
Encode a character.

Parameters:
character - character to encode.
 o sendCharacters
 public void sendCharacters(String message)
Send characters.

Parameters:
message - the characters to send.
 o message
 public void message(String message)
Send a message.

Parameters:
message - the message to send.

All Packages  Class Hierarchy  This Package  Previous  Next  Index