Package serialComms
Class SerialPortParameters
java.lang.Object
serialComms.SerialPortParameters
- All Implemented Interfaces:
 Serializable,Cloneable,ManagedParameters
public class SerialPortParameters
extends Object
implements Serializable, Cloneable, ManagedParameters
- Author:
 - David McLaren, Paul Redmond
 - See Also:
 
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionclone()booleanvoidintchargetChar()intintGet a set of data that describes all of the parameters in a classintintvoidsendChar(char charToSend) voidsendString(String stringToSend) voidsetBitsPerSecond(int bitsPerSecond) voidsetCommPortName(String commPortName) voidsetDataBits(int dataBits) voidsetFlowControl(int flowControl) voidsetParity(int parity) voidsetStopBits(int stopBits)  
- 
Field Details
- 
serialVersionUID
public static final long serialVersionUID- See Also:
 
 
 - 
 - 
Constructor Details
- 
SerialPortParameters
public SerialPortParameters() 
 - 
 - 
Method Details
- 
connect
- Parameters:
 port-bitsPerSecond-parity-- Returns:
 - true if connection sucessful
 
 - 
disconnect
public void disconnect() - 
sendChar
public void sendChar(char charToSend) - Parameters:
 charToSend-
 - 
sendString
 - 
getChar
public char getChar() - 
getString
 - 
getPortList
 - 
getBitsPerSecond
public int getBitsPerSecond() - 
setBitsPerSecond
public void setBitsPerSecond(int bitsPerSecond)  - 
getCommPortName
 - 
setCommPortName
 - 
getDataBits
public int getDataBits() - 
setDataBits
public void setDataBits(int dataBits)  - 
getParity
public int getParity() - 
setParity
public void setParity(int parity)  - 
getStopBits
public int getStopBits() - 
setStopBits
public void setStopBits(int stopBits)  - 
clone
 - 
getFlowControl
public int getFlowControl()- Returns:
 - the flowControl
 
 - 
setFlowControl
public void setFlowControl(int flowControl) - Parameters:
 flowControl- the flowControl to set
 - 
getParameterSet
Description copied from interface:ManagedParametersGet a set of data that describes all of the parameters in a class- Specified by:
 getParameterSetin interfaceManagedParameters- Returns:
 - description of the parameters in a class.
 
 
 -