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.
-
charSpace
- Time between characters.
-
dash
- Time for a dash.
-
dot
- Time for a dot.
-
symbolSpace
- Time betwen a symbol.
-
wordSpace
- Time between words.
-
MorseCode()
- Send the signals.
-
dash()
- Send a dash.
-
dot()
- Send a dot.
-
encodeChar(char)
- Encode a character.
-
main(String[])
- Send a signal.
-
message(String)
- Send a message.
-
sendCharacters(String)
- Send characters.
-
test(String)
- Send a message.
-
transmit(String)
- Send an encoded character.
dot
public static int dot
- Time for a dot.
symbolSpace
public static int symbolSpace
- Time betwen a symbol.
dash
public static int dash
- Time for a dash.
charSpace
public static int charSpace
- Time between characters.
wordSpace
public static int wordSpace
- Time between words.
MorseCode
public MorseCode()
- Send the signals.
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.
test
public void test(String string)
- Send a message.
- Parameters:
- string - the message to send.
dot
public void dot()
- Send a dot.
dash
public void dash()
- Send a dash.
transmit
public void transmit(String item)
- Send an encoded character.
- Parameters:
- item - the character to send.
encodeChar
public void encodeChar(char character)
- Encode a character.
- Parameters:
- character - character to encode.
sendCharacters
public void sendCharacters(String message)
- Send characters.
- Parameters:
- message - the characters to send.
message
public void message(String message)
- Send a message.
- Parameters:
- message - the message to send.
All Packages Class Hierarchy This Package Previous Next Index