public class SensorModel 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 |
---|
SensorModel()
The default constructor.
|
SensorModel(String name,
String protocol,
String type,
String version) |
SensorModel(String id,
String name,
String protocol,
String type,
String version) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getId() |
String |
getName() |
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) |
String |
toString() |
protected String protocol
protected String type
protected String version
public SensorModel()
public SensorModel(String name, String protocol, String type, String version)
name
- The name.protocol
- The protocol used by a sensor.type
- The type of the sensor.version
- The version the sensor is using.public String getId()
public String getName()
public String getProtocol()
public String getType()
public String getVersion()
public void setId(String id) throws BadSlugException
id
- the id to setBadSlugException
- if the id is invalid.public 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 setCopyright © 2015 Collaborative Software Development Laboratory. All rights reserved.