jmce - 1_02

jmce.sim.serial
Class RXTX

java.lang.Object
  extended by jmce.sim.AbstractHardware
      extended by jmce.sim.AbstractPeripheral
          extended by jmce.sim.Device<java.lang.Integer>
              extended by jmce.sim.Serial
                  extended by jmce.sim.serial.PolledSerial
                      extended by jmce.sim.serial.RXTX
All Implemented Interfaces:
java.lang.Runnable, Console, DeviceConsumer<java.lang.Integer>, Hardware, Peripheral
Direct Known Subclasses:
SerialRXTX

public abstract class RXTX
extends PolledSerial

Generic communication port using RXTXLibrary.

The binary version of JMCE contains the RXTXComm.jar and the shared library for WIN32 and Linux i686. for other system copy the correct shared library in the directory \bin in the installation root directory. If some think is not working check the documentation for your system on the RXTX website.

Version:
1.00
Author:
Mario Viara

Field Summary
 
Fields inherited from class jmce.sim.serial.PolledSerial
connected, is, os, rcvd, sent
 
Fields inherited from class jmce.sim.AbstractPeripheral
cpu
 
Method Summary
protected  void close()
          Close the input and output stream and set the connection to false.
 java.lang.String getPortName()
           
protected  void registerPort(gnu.io.CommPort port)
           
 void setPortName(java.lang.String name)
           
 
Methods inherited from class jmce.sim.serial.PolledSerial
connect, consume, delay, init, run
 
Methods inherited from class jmce.sim.Serial
print, println, println, putchar
 
Methods inherited from class jmce.sim.Device
addInputConsumer, addInputProducer, addOutputConsumer, addOutputProducer, getConnected, read, readOutput, readyRead, readyReadOutput, readyWrite, removeInputConsumer, removeOutputConsumer, setConnected, write, writeInput
 
Methods inherited from class jmce.sim.AbstractPeripheral
idle, registerCPU, setIdle, setLive
 
Methods inherited from class jmce.sim.AbstractHardware
addHardware, createFrame, destroy, getHardware, getHardware, getHardware, getHardware, getHardware, getHardwareCount, getHardwareForName, getHardwareInstances, getHardwareTree, getName, getParent, initSwing, removeHardware, removeHardware, reset, setHardware, setHardware, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jmce.sim.Hardware
addHardware, destroy, getHardware, getHardware, getHardware, getHardware, getHardwareCount, getHardwareInstances, getHardwareTree, getName, getParent, initSwing, removeHardware, removeHardware, reset, setHardware, setHardware, setName
 

Method Detail

setPortName

public void setPortName(java.lang.String name)

getPortName

public java.lang.String getPortName()

registerPort

protected void registerPort(gnu.io.CommPort port)
                     throws SIMException
Throws:
SIMException

close

protected void close()
Description copied from class: PolledSerial
Close the input and output stream and set the connection to false. All exception are ignored.

Overrides:
close in class PolledSerial

jmce - 1_02