Agent
. The files are just available in
the file system and therefore agents can read each other's data.
Therefore it is recommended that this is not used for new
developments.public class DataObjects
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static DataObjects |
getInstance()
Deprecated.
|
java.io.Serializable |
loadData(java.lang.String agentClassName,
java.lang.String prefProfName)
Deprecated.
Loads the data of the agent, by the agentClassName and the prefProfName.
|
boolean |
restartFolder()
Deprecated.
Restarts the folder "theFolder", meaning it deletes all files in it and
then creates a new empty folder with the same name.
|
boolean |
saveData(java.io.Serializable dataToSave,
java.lang.String agentClassName,
java.lang.String prefProfName)
Deprecated.
Saves dataToSave of the agent with class agentClassName for a preference
profile prefProfName.
|
public static DataObjects getInstance()
public boolean restartFolder()
public boolean saveData(java.io.Serializable dataToSave, java.lang.String agentClassName, java.lang.String prefProfName)
dataToSave
- a Serializable
object to saveagentClassName
- is the class name of the agent who wants to save the dataprefProfName
- is the preference profile for which the agent wants to save
datapublic java.io.Serializable loadData(java.lang.String agentClassName, java.lang.String prefProfName)
agentClassName
- is the class name of the agent who wants to load the dataprefProfName
- is the preference profile for which the agent wants to load
the data