|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.wcb.autohome.implementations.SerialPortBean
Copyright (C) 1999 Walter Bogaardt This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 SerialPortBean.java Created on February 2, 2004, 7:59 PM
Constructor Summary | |
SerialPortBean(java.lang.String sPortName)
Takes in the port id value of the serial port this can be either COM1 for windows or /dev/TTYS01 for unix. |
Method Summary | |
int |
getBaud()
Returns the baud rate. |
int |
getDataBit()
Returns the data bit. |
java.lang.String |
getParity()
Returns the parity of the serial connection. |
java.lang.String |
getPort()
Returns the string name of the serial port. |
int |
getStopBit()
Returns the stop bit of the interface's serial connection. |
void |
setBaud(int iB)
Allows interface to set the baud rate of the serial port |
void |
setDataBit(int idata)
Sets the data bit value for the serial port. |
void |
setParity(java.lang.String sparity)
Sets the serial port party to a string value. |
void |
setPort(java.lang.String sPortName)
Sets the serial port to the passed in string value. |
void |
setStopBit(int iStop)
Sets the serial port stop bit value |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SerialPortBean(java.lang.String sPortName)
sPortName
- Serial port identifier as a stringMethod Detail |
public void setPort(java.lang.String sPortName)
sPortName
- SerialPortBean representation of the port and valuespublic void setBaud(int iB)
iB
- should be one of these values 300, 2400, 4800, 9600, 14400, 28800, 38400, 57600, 115200public void setDataBit(int idata)
idata
- should be a value of 5, 6, 7, or 8public void setStopBit(int iStop)
iStop
- should be int value of 1 or 2public void setParity(java.lang.String sparity)
sparity
- should be a string value of None, Even, or Oddpublic java.lang.String getPort()
public int getBaud()
public int getDataBit()
public int getStopBit()
public java.lang.String getParity()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |