Modifier and Type | Class and Description |
---|---|
static class |
AlgorithmProvider.METHOD |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
GIT_PROVIDER_URL_KEY |
static java.lang.String |
HTTP_PROVIDER_INGESTION_URL_KEY |
static java.lang.String |
HTTP_PROVIDER_PREDICTION_URL_KEY |
Constructor and Description |
---|
AlgorithmProvider() |
AlgorithmProvider(Provider provider,
AlgorithmProvider.METHOD method,
java.util.Map<java.lang.String,java.lang.String> properties) |
Modifier and Type | Method and Description |
---|---|
boolean |
belongs(Device device) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getEmail() |
java.lang.Long |
getId() |
AlgorithmProvider.METHOD |
getMethod() |
float |
getPredictionRate() |
java.util.Map<java.lang.String,java.lang.String> |
getProperties() |
int |
hashCode() |
void |
incrementFailurePrections() |
void |
incrementSuccessPredictions() |
boolean |
isDeployed() |
protected void |
onCreate() |
protected void |
onUpdate() |
void |
setDeployed(boolean deployed) |
void |
setMethod(AlgorithmProvider.METHOD method) |
DTO |
toDTO() |
boolean |
wasVerified() |
public static final java.lang.String HTTP_PROVIDER_INGESTION_URL_KEY
public static final java.lang.String HTTP_PROVIDER_PREDICTION_URL_KEY
public static final java.lang.String GIT_PROVIDER_URL_KEY
public AlgorithmProvider()
public AlgorithmProvider(Provider provider, AlgorithmProvider.METHOD method, java.util.Map<java.lang.String,java.lang.String> properties)
public boolean belongs(Device device)
public java.lang.Long getId()
public java.lang.String getEmail()
public AlgorithmProvider.METHOD getMethod()
public void setMethod(AlgorithmProvider.METHOD method)
public java.util.Map<java.lang.String,java.lang.String> getProperties()
public boolean wasVerified()
public boolean isDeployed()
public void setDeployed(boolean deployed)
public float getPredictionRate()
public void incrementSuccessPredictions()
public void incrementFailurePrections()
protected void onCreate()
protected void onUpdate()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object