public class Device
extends java.lang.Object
Constructor and Description |
---|
Device()
Device constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getComment()
getComment: return the comment of the device
|
java.lang.String |
getLastCommand()
getLastCommand: return the last command executed on the device
|
java.util.Date |
getLastDate()
getLastDate: return the last date on that a command was executed on this device
|
java.lang.String |
getMode()
getMode: return the mode of the device (IN, OUT, I2C,.)
|
java.lang.String |
getName()
getName: return the name of the device
|
java.lang.String |
getParameter2()
getParameter2:
If it's a GPIO, this method return the Physical Pin number
If it's a IC2 device, this method return the hex address of bus I2C
|
java.lang.String |
getParameter3()
getParameter3:
If it's a GPIO, return the WiringPi and Pi4J logic pin number.
|
java.lang.String |
getParameter4()
getParameter4:
If it's a GPIO, return the Logical Pin Name
If it's a I2C device, return the values of configuration register/s
|
java.lang.String |
getParameter5()
getParameter5:
If it's a GPIO, return the Logic Level of signal: HIGH or LOW
If it's a I2C device, return the used channel, or UNK
|
java.lang.String |
getParameter6()
getParameter6:
If it's a GPIO, return the default or desired value on start: ON or OFF
If it's a I2C device, return the name of the conversion, or UNK
|
java.lang.String |
getValue()
getValue: return the value of the device
|
void |
setComment(java.lang.String comment)
setComment: set the comment of the device
|
void |
setLastCommand(java.lang.String lastCommand)
setLastCommand: set the last command executed on device
|
void |
setLastDate()
setLastDate: set the current date, date on that a command was executed on this device
|
void |
setLastDate(java.util.Date lastDate)
setLastDate: set the date on that a command was executed on this device.
|
void |
setMode(java.lang.String modeStr)
setMode: set the mode of the device (IN, OUT, I2C,.)
|
void |
setName(java.lang.String name)
setName: set the name of the device
|
void |
setParameter2(java.lang.String parameter2)
setParameter2:
If it's a GPIO, this method set the Physical Pin number
If it's a IC2 device, this method set the hex address of bus I2C
|
void |
setParameter3(java.lang.String pi4jPin)
setParameter3:
If it's a GPIO, set the WiringPi and Pi4J logic pin number.
|
void |
setParameter4(java.lang.String parameter4)
setParameter4:
If it's a GPIO, this parameter store the Logical Pin Name
If it's a I2C device, store the values of configuration register/s
|
void |
setParameter5(java.lang.String parameter5)
setParameter5:
If it's a GPIO, this parameter store the Logic Level of signal: HIGH or LOW
If it's a I2C device, store the used channel, or UNK
|
void |
setParameter6(java.lang.String parameter6)
setParameter6:
If it's a GPIO, this parameter store default or desired value on start: ON or OFF
If it's a I2C device, store the name of the conversion, or UNK
|
void |
setValue(java.lang.String value)
setValue: set the value of the device
|
java.lang.String |
toString()
toString:
|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name to setpublic java.lang.String getMode()
public void setMode(java.lang.String modeStr)
modeStr
- String with the mode.public java.lang.String getValue()
public void setValue(java.lang.String value)
value
- the value to setpublic java.lang.String getComment()
public void setComment(java.lang.String comment)
comment
- the comment to setpublic java.lang.String getParameter2()
public void setParameter2(java.lang.String parameter2)
parameter2
- the parameter2 to setpublic java.lang.String getParameter3()
public void setParameter3(java.lang.String pi4jPin)
pi4jPin
- the pi4jPin to setpublic java.lang.String getParameter4()
public void setParameter4(java.lang.String parameter4)
parameter4
- the parameter4 to setpublic java.lang.String getLastCommand()
public void setLastCommand(java.lang.String lastCommand)
lastCommand
- the lastCommand to setpublic java.util.Date getLastDate()
public void setLastDate()
public void setLastDate(java.util.Date lastDate)
lastDate
- Timestamp.public java.lang.String getParameter5()
public void setParameter5(java.lang.String parameter5)
parameter5
- the parameter5 to setpublic java.lang.String getParameter6()
public void setParameter6(java.lang.String parameter6)
parameter6
- the parameter6 to setpublic java.lang.String toString()
toString
in class java.lang.Object