1.0.0

org.eclipse.soda.dk.matrix.lcd.simulator
Class MatrixCorpLcdSimulator

java.lang.Object
  extended by org.eclipse.soda.dk.matrix.lcd.simulator.MatrixCorpLcdSimulator
All Implemented Interfaces:
LcdViewListener

public class MatrixCorpLcdSimulator
extends java.lang.Object
implements LcdViewListener

Version:
1.0.0

Field Summary
 
Fields inherited from interface org.eclipse.soda.dk.matrix.lcd.simulator.view.interfaces.LcdViewListener
DOWN_BUTTON, ENTER_BUTTON, F1_BUTTON, F2_BUTTON, LEFT_BUTTON, POWER_BUTTON, RIGHT_BUTTON, UP_BUTTON
 
Constructor Summary
MatrixCorpLcdSimulator()
          Constructs an instance of this class.
MatrixCorpLcdSimulator(int port)
          Constructs an instance of this class from the specified port parameter.
 
Method Summary
 void buttonPressed(int button)
          Button pressed with the specified button parameter.
protected  Connection getConnection()
          Returns the connection.
protected  Queue getProcessingQueue()
          Returns the processingQueue.
protected  boolean isConnected()
          Returns the connected.
protected  boolean isConnectionProcessing()
          Returns the connectionProcessing.
protected  boolean isEventProcessing()
          Returns the eventProcessing.
protected  boolean isWaitingForConnection()
          Retuns the waitingForConnection.
protected  void processTcpipData()
          Process tcpip data.
protected  void setConnected(boolean connected)
          Sets the connected.
protected  void setConnection(Connection connection)
          Sets the connection.
protected  void setConnectionProcessing(boolean connectionProcessing)
          Sets the connectionProcessing.
protected  void setEventProcessing(boolean eventProcessing)
          Sets the eventProcessing.
protected  void setProcessingQueue(Queue processingQueue)
          Sets the processingQueue.
protected  void setWaitingForConnection(boolean waitingForConnection)
          Sets the waitingForConnection.
 void shutdown()
          Shutdown.
 void simulatorClosed()
          Simulator closed.
protected  void startTcpipProcessing()
          Start tcpip processing.
 void startup()
          Startup.
protected  void uiAction(byte[] command)
          Ui action with the specified command parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatrixCorpLcdSimulator

public MatrixCorpLcdSimulator()
Constructs an instance of this class.

See Also:
MatrixCorpLcdSimulator(int)

MatrixCorpLcdSimulator

public MatrixCorpLcdSimulator(int port)
Constructs an instance of this class from the specified port parameter.

Parameters:
port - The port (int) parameter.
See Also:
MatrixCorpLcdSimulator()
Method Detail

buttonPressed

public void buttonPressed(int button)
Button pressed with the specified button parameter.

Specified by:
buttonPressed in interface LcdViewListener
Parameters:
button - The button (int) parameter.

getConnection

protected Connection getConnection()
Returns the connection.

Returns:
Results of the get connection (Connection) value.
See Also:
isWaitingForConnection(), setConnection(Connection), setWaitingForConnection(boolean)

getProcessingQueue

protected Queue getProcessingQueue()
Returns the processingQueue.

Returns:
Results of the get processing queue (Queue) value.
See Also:
setProcessingQueue(Queue)

isConnected

protected boolean isConnected()
Returns the connected.

Returns:
Results of the is connected (boolean) value.
See Also:
setConnected(boolean)

isConnectionProcessing

protected boolean isConnectionProcessing()
Returns the connectionProcessing.

Returns:
Results of the is connection processing (boolean) value.
See Also:
setConnectionProcessing(boolean)

isEventProcessing

protected boolean isEventProcessing()
Returns the eventProcessing.

Returns:
Results of the is event processing (boolean) value.
See Also:
setEventProcessing(boolean)

isWaitingForConnection

protected boolean isWaitingForConnection()
Retuns the waitingForConnection.

Returns:
Results of the is waiting for connection (boolean) value.
See Also:
setWaitingForConnection(boolean)

processTcpipData

protected void processTcpipData()
Process tcpip data.


setConnected

protected void setConnected(boolean connected)
Sets the connected.

Parameters:
connected - The connected to set
See Also:
isConnected()

setConnection

protected void setConnection(Connection connection)
Sets the connection.

Parameters:
connection - The connection to set
See Also:
getConnection(), isWaitingForConnection(), setWaitingForConnection(boolean)

setConnectionProcessing

protected void setConnectionProcessing(boolean connectionProcessing)
Sets the connectionProcessing.

Parameters:
connectionProcessing - The connectionProcessing to set
See Also:
isConnectionProcessing()

setEventProcessing

protected void setEventProcessing(boolean eventProcessing)
Sets the eventProcessing.

Parameters:
eventProcessing - The eventProcessing to set
See Also:
isEventProcessing()

setProcessingQueue

protected void setProcessingQueue(Queue processingQueue)
Sets the processingQueue.

Parameters:
processingQueue - The processingQueue to set
See Also:
getProcessingQueue()

setWaitingForConnection

protected void setWaitingForConnection(boolean waitingForConnection)
Sets the waitingForConnection.

Parameters:
waitingForConnection - The waitingForConnection to set
See Also:
isWaitingForConnection()

shutdown

public void shutdown()
Shutdown.


simulatorClosed

public void simulatorClosed()
Simulator closed.

Specified by:
simulatorClosed in interface LcdViewListener

startTcpipProcessing

protected void startTcpipProcessing()
Start tcpip processing.


startup

public void startup()
Startup.


uiAction

protected void uiAction(byte[] command)
Ui action with the specified command parameter.

Parameters:
command - The command (byte[]) parameter.

1.0.0

Copyright (c) 2007 IBM