Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.joone.dte
Interface TaskFactory  view TaskFactory download TaskFactory.java

All Known Implementing Classes:
TaskListFactory

public interface TaskFactory

This interface must be implemented by any class that is capable to create tasks to elaborate (i.e. neural nets to train) starting from external parameters written in some formalism or language (e.g. XML) After the TaskFactory is created, the DTE calls on it the initialize() method, and then, for each neural network it needs to elaborate, the getNextTask() is called, until it returns null. The developer has two possibilities, based on the creation mechanism he wants to implement: 1 - In order to avoid to occupy many memory, the initialize method doesn't create neural networks, as they are created only when getNextTask is called. (Preferred) 2 - The initialize method creates all the requested networks by putting them into a list. The getNextTask method gets the next neural network from that list. (Use only when it's impossibile to generate the networks when requested) Regardless the implemented creation strategy, the getTotTasks must return the total number of neural networks it creates.


Method Summary
 org.joone.net.NeuralNet getNextTask()
          Called to get the next Task in the list.
 int getTotTasks()
          Returns the total number of tasks will be generated
 void initialize()
          Called by the Job to initialize the factory
 

Method Detail

initialize

public void initialize()
Called by the Job to initialize the factory


getNextTask

public org.joone.net.NeuralNet getNextTask()
Called to get the next Task in the list.


getTotTasks

public int getTotTasks()
Returns the total number of tasks will be generated