public abstract class BasicML extends java.lang.Object implements MLMethod, MLProperties, java.io.Serializable
| Constructor and Description |
|---|
BasicML() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
getProperties() |
double |
getPropertyDouble(java.lang.String name)
Get the specified property as a double.
|
long |
getPropertyLong(java.lang.String name)
Get the specified property as a long.
|
java.lang.String |
getPropertyString(java.lang.String name)
Get the specified property as a string.
|
void |
setProperty(java.lang.String name,
double d)
Set a property as a double.
|
void |
setProperty(java.lang.String name,
long l)
Set a property as a long.
|
void |
setProperty(java.lang.String name,
java.lang.String value)
Set a property as a double.
|
abstract void |
updateProperties()
Update any objeccts when a property changes.
|
public java.util.Map<java.lang.String,java.lang.String> getProperties()
getProperties in interface MLPropertiespublic double getPropertyDouble(java.lang.String name)
getPropertyDouble in interface MLPropertiesname - The name of the property.public long getPropertyLong(java.lang.String name)
getPropertyLong in interface MLPropertiesname - The name of the specified property.public java.lang.String getPropertyString(java.lang.String name)
getPropertyString in interface MLPropertiesname - The name of the property.public void setProperty(java.lang.String name,
double d)
setProperty in interface MLPropertiesname - The name of the property.d - The value of the property.public void setProperty(java.lang.String name,
long l)
setProperty in interface MLPropertiesname - The name of the property.l - The value of the property.public void setProperty(java.lang.String name,
java.lang.String value)
setProperty in interface MLPropertiesname - The name of the property.value - The value of the property.public abstract void updateProperties()
MLPropertiesupdateProperties in interface MLProperties