|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.persist.BasicPersistedObject
org.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 | |
|---|---|
Object |
clone()
Clone this object. |
Persistor |
createPersistor()
Create a persistor for this object. |
String |
get(String name)
Get the specified property. |
Map<String,String> |
getData()
Get all of the property data as a map. |
Date |
getDate(String field)
Get a property as a date. |
double |
getDouble(String field)
Get a property as a double. |
int |
getInteger(String field)
Get a property as an integer. |
boolean |
isDefined(String key)
Determine of the specified property is defined. |
void |
remove(String key)
Remove the specified property. |
void |
set(String name,
String value)
Set the specified property. |
int |
size()
|
| Methods inherited from class org.encog.persist.BasicPersistedObject |
|---|
getCollection, getDescription, getName, setCollection, setDescription, setName |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyData()
| Method Detail |
|---|
public Object clone()
clone in class Objectpublic Persistor createPersistor()
BasicPersistedObject
createPersistor in interface EncogPersistedObjectcreatePersistor in class BasicPersistedObjectpublic String get(String name)
name - The property name.
public Map<String,String> getData()
public Date getDate(String field)
field - The name of the field.
public double getDouble(String field)
field - The name of the field.
public int getInteger(String field)
field - The name of the field.
public boolean isDefined(String key)
key - The property to check.
public void remove(String key)
key - The property to remove.
public void set(String name,
String value)
name - The name of the property.value - The value to set the property to.public int size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||