public class AMOEBA
extends java.lang.Thread
| Constructor and Description |
|---|
AMOEBA(java.lang.Boolean viewer,
Scheduler scheduler,
World world,
BlackBox blackBox)
Instantiates a new amoeba.
|
AMOEBA(StudiedSystem studiedSystem)
Instantiates a new amoeba.
|
| Modifier and Type | Method and Description |
|---|---|
void |
changeControl()
Change control.
|
java.util.ArrayList<Context> |
getAllValidContextBut(java.util.HashMap<java.lang.String,java.lang.Double> values,
java.lang.String s)
Gets the all valid context but.
|
java.util.ArrayList<Context> |
getAllValidContextBut(java.lang.String s)
Gets the all valid context but.
|
boolean |
getCSV()
Gets the csv.
|
CsvFileWriter |
getCSVFile()
Gets the CSV file.
|
LearningProvider |
getLearningProvider()
Gets the learning provider.
|
LogFile |
getLogFile()
Gets the log file.
|
MainPanel |
getMainPanel()
Gets the main panel.
|
Scheduler |
getScheduler()
Gets the scheduler.
|
StudiedSystem |
getStudiedSystem()
Gets the studied system.
|
TemporalGraph |
getTemporalGraph()
Gets the temporal graph.
|
boolean |
isRunning()
Checks if is running.
|
void |
learn(java.util.HashMap<java.lang.String,java.lang.Double> actions)
Learn.
|
void |
playOneStep()
Play one step.
|
void |
readInput()
Read input.
|
double |
request(java.util.HashMap<java.lang.String,java.lang.Double> actions)
Request.
|
void |
run() |
void |
setAVT_acceleration(double aVT_acceleration)
Sets the AV T acceleration.
|
void |
setAVT_deceleration(double aVT_deceleration)
Sets the AV T deceleration.
|
void |
setAVT_percentAtStart(double aVT_percentAtStart)
Sets the AV T percent at start.
|
void |
setDataForErrorMargin(double errorAllowed,
double augmentationFactorError,
double diminutionFactorError,
double minErrorAllowed,
int nConflictBeforeAugmentation,
int nSuccessBeforeDiminution)
Sets the data for error margin.
|
void |
setDataForInexactMargin(double inexactAllowed,
double augmentationInexactError,
double diminutionInexactError,
double minInexactAllowed,
int nConflictBeforeInexactAugmentation,
int nSuccessBeforeInexactDiminution)
Sets the data for inexact margin.
|
void |
setGenerateCSV(boolean csv)
Sets the generate CSV.
|
void |
setLocalModel(TypeLocalModel model)
Sets the local model.
|
void |
setRememberState(boolean rememberState)
Sets the remember state.
|
void |
setRunning(boolean running)
Sets the running.
|
void |
setScheduler(Scheduler scheduler)
Sets the scheduler.
|
void |
setStudiedSystem(StudiedSystem studiedSystem)
Sets the studied system.
|
void |
start() |
void |
start(boolean running)
Start.
|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yieldpublic AMOEBA(StudiedSystem studiedSystem)
studiedSystem - the studied systempublic void setDataForErrorMargin(double errorAllowed,
double augmentationFactorError,
double diminutionFactorError,
double minErrorAllowed,
int nConflictBeforeAugmentation,
int nSuccessBeforeDiminution)
errorAllowed - the error allowedaugmentationFactorError - the augmentation factor errordiminutionFactorError - the diminution factor errorminErrorAllowed - the min error allowednConflictBeforeAugmentation - the n conflict before augmentationnSuccessBeforeDiminution - the n success before diminutionpublic void setDataForInexactMargin(double inexactAllowed,
double augmentationInexactError,
double diminutionInexactError,
double minInexactAllowed,
int nConflictBeforeInexactAugmentation,
int nSuccessBeforeInexactDiminution)
inexactAllowed - the inexact allowedaugmentationInexactError - the augmentation inexact errordiminutionInexactError - the diminution inexact errorminInexactAllowed - the min inexact allowednConflictBeforeInexactAugmentation - the n conflict before inexact augmentationnSuccessBeforeInexactDiminution - the n success before inexact diminutionpublic void setLocalModel(TypeLocalModel model)
model - the new local modelpublic void start(boolean running)
running - the runningpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void learn(java.util.HashMap<java.lang.String,java.lang.Double> actions)
actions - the actionspublic double request(java.util.HashMap<java.lang.String,java.lang.Double> actions)
actions - the actionspublic void start()
start in class java.lang.Threadpublic Scheduler getScheduler()
public void readInput()
public void setScheduler(Scheduler scheduler)
scheduler - the new schedulerpublic boolean isRunning()
public void setRunning(boolean running)
running - the new runningpublic void playOneStep()
public void changeControl()
public java.util.ArrayList<Context> getAllValidContextBut(java.lang.String s)
s - the spublic java.util.ArrayList<Context> getAllValidContextBut(java.util.HashMap<java.lang.String,java.lang.Double> values, java.lang.String s)
values - the valuess - the spublic StudiedSystem getStudiedSystem()
public void setStudiedSystem(StudiedSystem studiedSystem)
studiedSystem - the new studied systempublic MainPanel getMainPanel()
public LearningProvider getLearningProvider()
public LogFile getLogFile()
public TemporalGraph getTemporalGraph()
public void setRememberState(boolean rememberState)
rememberState - the new remember statepublic void setGenerateCSV(boolean csv)
csv - the new generate CSVpublic boolean getCSV()
public CsvFileWriter getCSVFile()
public void setAVT_acceleration(double aVT_acceleration)
aVT_acceleration - the new AV T accelerationpublic void setAVT_deceleration(double aVT_deceleration)
aVT_deceleration - the new AV T decelerationpublic void setAVT_percentAtStart(double aVT_percentAtStart)
aVT_percentAtStart - the new AV T percent at start