1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
| public class MultithreadedEngine implements Engine
{
private/* static is implicit */enum Status
{
STOPPED(1), IN_START(2), STARTED(3), IN_STOP(4);
private int id;
int getId()
{
return this.id;
}
Status(int id)
{
this.id = id;
}
}
Status engineCurrentStatus = Status.STOPPED;
private static MultithreadedEngine instance = new MultithreadedEngine();
private AcquisitionAndProcessingImpl acquisitionAndProcessing = null;
private ConfigurationImpl configuration = null;
private InternalDictionary dictionary = null;
private InternalScheduler scheduler = null;
private InternalLoader loader = null;
private ImportExport importExport = null;
private MultithreadedEngine()
{
this.dictionary = new InternalDictionary();
this.scheduler = new InternalScheduler(dictionary);
this.acquisitionAndProcessing = new AcquisitionAndProcessingImpl(this.dictionary,this.scheduler);
this.configuration = new ConfigurationImpl(this.dictionary,this.scheduler);
this.loader = new InternalLoader(this.dictionary,this.scheduler);
//this.importExport = new ImportExportImpl(this.dictionary);
} |
Partager