public abstract class DeviceJPA
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.lang.Float |
batteryLevel
The battery level.
|
protected java.lang.Float |
gsmSignal
The gsm signal.
|
protected java.lang.String |
status
The status.
|
Constructor and Description |
---|
DeviceJPA()
Instantiates a new device JPA.
|
DeviceJPA(DeviceModel model,
java.lang.String serialNumber,
java.lang.String firmwareVersion,
CommunicationType communication)
Instantiates a new device JPA.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Float |
getBatteryLevel()
Gets the battery level.
|
java.util.Collection<CommandJPA> |
getCommands()
Gets the commands.
|
CommunicationType |
getCommunication()
Gets the communication.
|
java.lang.String |
getFirmwareVersion()
Gets the firmware version.
|
java.lang.Float |
getGsmSignal()
Gets the gsm signal.
|
java.lang.Integer |
getId()
Gets the id.
|
DeviceModel |
getModel()
Gets the model.
|
PhoneLineJPA |
getPhoneLine()
Gets the phone line.
|
java.lang.String |
getSerialNumber()
Gets the serial number.
|
java.lang.String |
getStatus()
Gets the status.
|
VehicleJPA |
getVehicle()
Gets the vehicle.
|
void |
setBatteryLevel(java.lang.Float batteryLevel)
Sets the battery level.
|
void |
setCommands(java.util.Collection<CommandJPA> commands)
Sets the commands.
|
void |
setCommunication(CommunicationType communication)
Sets the communication.
|
void |
setFirmwareVersion(java.lang.String firmwareVersion)
Sets the firmware version.
|
void |
setGsmSignal(java.lang.Float gsmSignal)
Sets the gsm signal.
|
void |
setId(java.lang.Integer id)
Sets the id.
|
void |
setModel(DeviceModel model)
Sets the model.
|
void |
setPhoneLine(PhoneLineJPA phoneLine)
Sets the phone line.
|
void |
setSerialNumber(java.lang.String serialNumber)
Sets the serial number.
|
void |
setStatus(java.lang.String status)
Sets the status.
|
void |
setVehicle(VehicleJPA vehicle)
Sets the vehicle.
|
protected java.lang.Float batteryLevel
protected java.lang.Float gsmSignal
protected java.lang.String status
public DeviceJPA()
public DeviceJPA(DeviceModel model, java.lang.String serialNumber, java.lang.String firmwareVersion, CommunicationType communication)
model
- the modelserialNumber
- the serial numberfirmwareVersion
- the firmware versioncommunication
- the communicationpublic java.lang.Integer getId()
public void setId(java.lang.Integer id)
id
- the new idpublic DeviceModel getModel()
public void setModel(DeviceModel model)
model
- the new modelpublic java.lang.String getSerialNumber()
public void setSerialNumber(java.lang.String serialNumber)
serialNumber
- the new serial numberpublic java.lang.String getFirmwareVersion()
public void setFirmwareVersion(java.lang.String firmwareVersion)
firmwareVersion
- the new firmware versionpublic CommunicationType getCommunication()
public void setCommunication(CommunicationType communication)
communication
- the new communicationpublic java.lang.Float getBatteryLevel()
public void setBatteryLevel(java.lang.Float batteryLevel)
batteryLevel
- the new battery levelpublic java.lang.Float getGsmSignal()
public void setGsmSignal(java.lang.Float gsmSignal)
gsmSignal
- the new gsm signalpublic java.lang.String getStatus()
public void setStatus(java.lang.String status)
status
- the new statuspublic PhoneLineJPA getPhoneLine()
public void setPhoneLine(PhoneLineJPA phoneLine)
phoneLine
- the new phone linepublic VehicleJPA getVehicle()
public void setVehicle(VehicleJPA vehicle)
vehicle
- the new vehiclepublic java.util.Collection<CommandJPA> getCommands()
public void setCommands(java.util.Collection<CommandJPA> commands)
commands
- the new commands