![JAR search and dependency download from the Maven repository](/logo.png)
oshi.hardware.common.AbstractBaseboard Maven / Gradle / Ivy
/**
* Oshi (https://github.com/dblock/oshi)
*
* Copyright (c) 2010 - 2016 The Oshi Project Team
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Maintainers:
* dblock[at]dblock[dot]org
* widdis[at]gmail[dot]com
* enrico.bianchi[at]gmail[dot]com
*
* Contributors:
* https://github.com/dblock/oshi/graphs/contributors
*/
package oshi.hardware.common;
import oshi.hardware.Baseboard;
/**
* Baseboard data
*
* @author widdis [at] gmail [dot] com
*/
public abstract class AbstractBaseboard implements Baseboard {
private static final long serialVersionUID = 1L;
private String manufacturer;
private String model;
private String version;
private String serialNumber;
public AbstractBaseboard() {
this.manufacturer = "unknown";
this.model = "unknown";
this.version = "unknown";
this.serialNumber = "";
}
/**
* {@inheritDoc}
*/
@Override
public String getManufacturer() {
return manufacturer;
}
/**
* {@inheritDoc}
*/
@Override
public String getModel() {
return model;
}
/**
* {@inheritDoc}
*/
@Override
public String getVersion() {
return version;
}
/**
* {@inheritDoc}
*/
@Override
public String getSerialNumber() {
return serialNumber;
}
/**
* @param manufacturer
* The manufacturer to set.
*/
public void setManufacturer(String manufacturer) {
this.manufacturer = manufacturer;
}
/**
* @param model
* The model to set.
*/
public void setModel(String model) {
this.model = model;
}
/**
* @param version
* The version to set.
*/
public void setVersion(String version) {
this.version = version;
}
/**
* @param serialNumber
* The serialNumber to set.
*/
public void setSerialNumber(String serialNumber) {
this.serialNumber = serialNumber;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy