2019-03-22 15:51:44 +01:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
package org.gcube.resourcemanagement.model.reference.entities.facets;
|
|
|
|
|
2020-07-07 17:12:10 +02:00
|
|
|
import org.gcube.com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
2019-03-22 15:51:44 +01:00
|
|
|
import org.gcube.informationsystem.model.reference.entities.Facet;
|
|
|
|
import org.gcube.informationsystem.types.annotations.ISProperty;
|
2020-12-15 18:38:41 +01:00
|
|
|
import org.gcube.informationsystem.types.reference.Change;
|
|
|
|
import org.gcube.informationsystem.types.reference.TypeMetadata;
|
|
|
|
import org.gcube.informationsystem.utils.TypeVersion;
|
2019-03-22 15:51:44 +01:00
|
|
|
import org.gcube.resourcemanagement.model.impl.entities.facets.CPUFacetImpl;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author Luca Frosini (ISTI - CNR)
|
|
|
|
* https://wiki.gcube-system.org/gcube/Facet_Based_Resource_Model#CPU_Facet
|
|
|
|
*/
|
|
|
|
@JsonDeserialize(as=CPUFacetImpl.class)
|
2020-12-15 18:38:41 +01:00
|
|
|
@TypeMetadata(
|
|
|
|
name = CPUFacet.NAME,
|
|
|
|
description = "Describes CPU information.",
|
|
|
|
version = TypeVersion.MINIMAL_VERSION_STRING
|
|
|
|
)
|
|
|
|
@Change(version = TypeVersion.MINIMAL_VERSION_STRING, description = TypeVersion.MINIMAL_VERSION_DESCRIPTION)
|
2019-03-22 15:51:44 +01:00
|
|
|
public interface CPUFacet extends Facet {
|
|
|
|
|
|
|
|
public static final String NAME = "CPUFacet"; //CPUFacet.class.getSimpleName();
|
|
|
|
|
|
|
|
@ISProperty(mandatory=true, nullable=false)
|
|
|
|
public String getModel();
|
|
|
|
|
|
|
|
public void setModel(String model);
|
|
|
|
|
|
|
|
@ISProperty(mandatory=true, nullable=false)
|
|
|
|
public String getVendor();
|
|
|
|
|
|
|
|
public void setVendor(String vendor);
|
|
|
|
|
|
|
|
@ISProperty(mandatory=true, nullable=false)
|
|
|
|
public String getClockSpeed();
|
|
|
|
|
|
|
|
public void setClockSpeed(String clockSpeed);
|
|
|
|
|
|
|
|
}
|