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

Quick Search    Search Deep

com.trapezium.factory
Class FactoryChain  view FactoryChain download FactoryChain.java

java.lang.Object
  extended bycom.trapezium.factory.FactoryDataUpdater
      extended bycom.trapezium.factory.QueuedRequestFactory
          extended bycom.trapezium.factory.FactoryChain
All Implemented Interfaces:
java.util.EventListener, FactoryRequestListener, FactoryResponseListener

public class FactoryChain
extends QueuedRequestFactory


Field Summary
(package private)  java.util.Vector chainLinks
           
(package private)  java.util.Vector chiselFactories
           
(package private)  int chiselGroup
           
(package private)  java.lang.String factoryName
           
(package private)  int id
           
(package private) static int idcounter
           
 
Fields inherited from class com.trapezium.factory.QueuedRequestFactory
queueRequestThread, requestQueue
 
Fields inherited from class com.trapezium.factory.FactoryDataUpdater
data, listener
 
Constructor Summary
FactoryChain(int chiselGroup)
           
 
Method Summary
 void addChisel(java.lang.String chiselName, int chiselType, QueuedRequestFactory parser, java.lang.String baseFilePath, java.lang.String nameWithoutPath, com.trapezium.chisel.RowState rowState)
          Add a chisel to the list of chisels.
(package private)  void addChiselFactory(com.trapezium.chisel.Optimizer theOptimizer, java.lang.String baseFilePath, java.lang.String nameWithoutPath)
           
 void addChiselFactory(java.lang.String chiselName, int chiselType, java.lang.String baseFilePath, java.lang.String nameWithoutPath, com.trapezium.chisel.RowState rowState)
          Add a factory to the list of factories
(package private)  void addFactory(ChiselFactory chiselFactory, java.lang.Object chiselName, java.lang.String baseFilePath, java.lang.String nameWithoutPath)
           
 void addFactory(QueuedRequestFactory factory)
          Add another factory to the list of factories
 void addOptimizer(com.trapezium.chisel.Optimizer theOptimizer, QueuedRequestFactory parser, java.lang.String baseFilePath, java.lang.String nameWithoutPath)
          Add an optimizer to the factory chain.
 void disableChisel(java.lang.String chiselName)
           
 void done(FactoryData fd)
          Called when a Factory has finished running, move on to the next Factory
 void dump()
           
(package private)  void dump(int indentLevel)
           
 void enableChisel(java.lang.String chiselName, FactoryResponseListener theListener)
           
 QueuedRequestFactory getFactoryAt(int offset)
           
 java.lang.String getFactoryName()
           
static java.lang.String getFixedFactoryName()
           
 int getNumberChainLinks()
           
 void handleRequest(FactoryData factoryData)
           
 void insertFactory(QueuedRequestFactory factory, QueuedRequestFactory prev)
           
 void removeFactory(java.lang.String factoryName)
           
(package private)  void runFactory(int n, FactoryData factoryData)
          Run a factory in the list
 void setFactoryName(java.lang.String factoryName)
           
 void setFactoryTitle(java.lang.String factoryTitle)
           
(package private)  void setFactoryTitles()
           
 void submit(FactoryData factoryData)
          Start the factory chain, make this object the listener for the chained factory entries, the original listener is saved in "listener".
 void wipeout()
           
 
Methods inherited from class com.trapezium.factory.QueuedRequestFactory
cloneQueue, done, getQueueSize, processRequest, update
 
Methods inherited from class com.trapezium.factory.FactoryDataUpdater
addListener, getListener, setAction, setFactoryData, setLinePercent, setListener, setNumberOfLines, setPolygonCount, setText, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

chainLinks

java.util.Vector chainLinks

chiselFactories

java.util.Vector chiselFactories

chiselGroup

int chiselGroup

idcounter

static int idcounter

id

int id

factoryName

java.lang.String factoryName
Constructor Detail

FactoryChain

public FactoryChain(int chiselGroup)
Method Detail

wipeout

public void wipeout()
Overrides:
wipeout in class QueuedRequestFactory

getFactoryName

public java.lang.String getFactoryName()
Overrides:
getFactoryName in class QueuedRequestFactory

getFixedFactoryName

public static java.lang.String getFixedFactoryName()

addFactory

public void addFactory(QueuedRequestFactory factory)
Add another factory to the list of factories


getFactoryAt

public QueuedRequestFactory getFactoryAt(int offset)

setFactoryName

public void setFactoryName(java.lang.String factoryName)

setFactoryTitle

public void setFactoryTitle(java.lang.String factoryTitle)

disableChisel

public void disableChisel(java.lang.String chiselName)

removeFactory

public void removeFactory(java.lang.String factoryName)

enableChisel

public void enableChisel(java.lang.String chiselName,
                         FactoryResponseListener theListener)

insertFactory

public void insertFactory(QueuedRequestFactory factory,
                          QueuedRequestFactory prev)

submit

public void submit(FactoryData factoryData)
Start the factory chain, make this object the listener for the chained factory entries, the original listener is saved in "listener".

Specified by:
submit in interface FactoryRequestListener
Overrides:
submit in class QueuedRequestFactory

getNumberChainLinks

public int getNumberChainLinks()

done

public void done(FactoryData fd)
Called when a Factory has finished running, move on to the next Factory

Specified by:
done in interface FactoryResponseListener
Overrides:
done in class FactoryDataUpdater

runFactory

void runFactory(int n,
                FactoryData factoryData)
Run a factory in the list


handleRequest

public void handleRequest(FactoryData factoryData)
Specified by:
handleRequest in class QueuedRequestFactory

dump

public void dump()

dump

void dump(int indentLevel)

addChisel

public void addChisel(java.lang.String chiselName,
                      int chiselType,
                      QueuedRequestFactory parser,
                      java.lang.String baseFilePath,
                      java.lang.String nameWithoutPath,
                      com.trapezium.chisel.RowState rowState)
Add a chisel to the list of chisels.


setFactoryTitles

void setFactoryTitles()

addOptimizer

public void addOptimizer(com.trapezium.chisel.Optimizer theOptimizer,
                         QueuedRequestFactory parser,
                         java.lang.String baseFilePath,
                         java.lang.String nameWithoutPath)
Add an optimizer to the factory chain.


addChiselFactory

public void addChiselFactory(java.lang.String chiselName,
                             int chiselType,
                             java.lang.String baseFilePath,
                             java.lang.String nameWithoutPath,
                             com.trapezium.chisel.RowState rowState)
Add a factory to the list of factories


addChiselFactory

void addChiselFactory(com.trapezium.chisel.Optimizer theOptimizer,
                      java.lang.String baseFilePath,
                      java.lang.String nameWithoutPath)

addFactory

void addFactory(ChiselFactory chiselFactory,
                java.lang.Object chiselName,
                java.lang.String baseFilePath,
                java.lang.String nameWithoutPath)