All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jorigin.device.SimpleDeviceInfo Maven / Gradle / Ivy

There is a newer version: 1.0.9
Show newest version
package org.jorigin.device;

import org.jorigin.Common;

/**
 * A class that describe information related to a manufactured device.
 * @author Julien SEINTURIER - Université de Toulon / CNRS LIS umr 7020 - github.com/jorigin/jcommon ([email protected])
 * @version {@value Common#version} - b{@value Common#BUILD}
 * @since 1.0.14
 */
public class SimpleDeviceInfo implements DeviceInfo{

	/**
	 * The model of the device.
	 */
	private String model = null;
	
	/**
	 * The manufacturer of the device.
	 */
	private String manufacturer = null;
	
	/**
	 * The serial number of the device.
	 */
	private String serialNumber = null;
	
	/**
	 * An URL that point the specification of the device.
	 */
	private String specificationURL = null;
	
	/**
	 * Create a new simple device info.
	 * @param model the model of the device
	 * @param manufacturer the manufacturer of the device
	 * @param serialNumber the serial number of the device
	 * @param specificationURL an URL that point the specification of the device
	 */
	public SimpleDeviceInfo(String model, String manufacturer, String serialNumber, String specificationURL) {
		this.model = model;
		this.manufacturer = manufacturer;
		this.serialNumber = serialNumber;
		this.specificationURL = specificationURL;
	}
	
	@Override
	public String getDeviceModel() {
		return model;
	}

	@Override
	public String getDeviceManufacturer() {
		return manufacturer;
	}

	@Override
	public String getDeviceSerialNumber() {
		return serialNumber;
	}

	@Override
	public String getDeviceSpecificationURL() {
		return specificationURL;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy