|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.encog.neural.data.PropertyData
public class PropertyData
An Encog data object that can be used to hold property data. This is a collection of name-value pairs that can be saved in an Encog persisted file.
| Constructor Summary | |
|---|---|
PropertyData()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clone this object. |
Persistor |
createPersistor()
Create a persistor for this object. |
java.lang.String |
get(java.lang.String name)
Get the specified property. |
java.util.Map<java.lang.String,java.lang.String> |
getData()
Get all of the property data as a map. |
java.util.Date |
getDate(java.lang.String field)
Get a property as a date. |
java.lang.String |
getDescription()
|
double |
getDouble(java.lang.String field)
Get a property as a double. |
int |
getInteger(java.lang.String field)
Get a property as an integer. |
java.lang.String |
getName()
|
boolean |
isDefined(java.lang.String key)
Determine of the specified property is defined. |
void |
remove(java.lang.String key)
Remove the specified property. |
void |
set(java.lang.String name,
java.lang.String value)
Set the specified property. |
void |
setDescription(java.lang.String description)
Set the description for this object. |
void |
setName(java.lang.String name)
Set the name of this property. |
int |
size()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyData()
| Method Detail |
|---|
public java.lang.Object clone()
clone in class java.lang.Objectpublic Persistor createPersistor()
EncogPersistedObject
createPersistor in interface EncogPersistedObjectpublic java.lang.String get(java.lang.String name)
name - The property name.
public java.util.Map<java.lang.String,java.lang.String> getData()
public java.util.Date getDate(java.lang.String field)
field - The name of the field.
public java.lang.String getDescription()
getDescription in interface EncogPersistedObjectpublic double getDouble(java.lang.String field)
field - The name of the field.
public int getInteger(java.lang.String field)
field - The name of the field.
public java.lang.String getName()
getName in interface EncogPersistedObjectpublic boolean isDefined(java.lang.String key)
key - The property to check.
public void remove(java.lang.String key)
key - The property to remove.
public void set(java.lang.String name,
java.lang.String value)
name - The name of the property.value - The value to set the property to.public void setDescription(java.lang.String description)
setDescription in interface EncogPersistedObjectdescription - The description of this property.public void setName(java.lang.String name)
setName in interface EncogPersistedObjectname - The name of this property.public int size()
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||