@Entity public class SensorModelImpl extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
protocol
The protocol this sensor uses.
|
protected String |
type
The type of the sensor.
|
protected String |
version
The version of the sensor model.
|
Constructor and Description |
---|
SensorModelImpl()
Default constructor.
|
SensorModelImpl(String id,
String name,
String protocol,
String type,
String version) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getId() |
String |
getName() |
Long |
getPk() |
String |
getProtocol() |
String |
getType() |
String |
getVersion() |
int |
hashCode() |
void |
setId(String id) |
void |
setName(String name) |
void |
setProtocol(String protocol) |
void |
setType(String type) |
void |
setVersion(String version) |
SensorModel |
toSensorModel() |
String |
toString() |
protected String protocol
protected String type
protected String version
public String getId()
public String getName()
public Long getPk()
public String getProtocol()
public String getType()
public String getVersion()
public void setId(String id)
id
- the id to setpublic void setName(String name)
name
- the name to setpublic void setProtocol(String protocol)
protocol
- the protocol to setpublic void setType(String type)
type
- the type to setpublic void setVersion(String version)
version
- the version to setpublic SensorModel toSensorModel()
Copyright © 2015 Collaborative Software Development Laboratory. All rights reserved.