jmce - 1_02

jmce.sim
Class Serial

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
All Implemented Interfaces:
Console, Hardware, Peripheral
Direct Known Subclasses:
Console, Console, Console, Console, Network, PolledSerial, Printer, Serial, SerialFile, Terminal

public abstract class Serial
extends Device<java.lang.Integer>
implements Console

Sample abstract class for serial chars device.

Version:
1.00
Author:
Mario Viara

Field Summary
 
Fields inherited from class jmce.sim.AbstractPeripheral
cpu
 
Constructor Summary
Serial()
           
Serial(java.lang.String name)
           
 
Method Summary
 void print(java.lang.Object o)
           
 void println()
           
 void println(java.lang.Object s)
           
 void putchar(int c)
           
 
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, init, 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, init, initSwing, removeHardware, removeHardware, reset, setHardware, setHardware, setName
 

Constructor Detail

Serial

public Serial()

Serial

public Serial(java.lang.String name)
Method Detail

putchar

public void putchar(int c)
             throws SIMException
Specified by:
putchar in interface Console
Throws:
SIMException

println

public final void println()
                   throws SIMException
Specified by:
println in interface Console
Throws:
SIMException

println

public final void println(java.lang.Object s)
                   throws SIMException
Specified by:
println in interface Console
Throws:
SIMException

print

public final void print(java.lang.Object o)
                 throws SIMException
Specified by:
print in interface Console
Throws:
SIMException

jmce - 1_02