public class MosaicMan
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
MosaicMan() |
Modifier and Type | Method and Description |
---|---|
int |
emptyMosaicQueue()
Remove any and all jobs from the Mosaic queue
|
MosaicEngine |
getMosaicEngine()
If Mosaic is running, return a reference to the running engine.
|
MosaicManDevelopment |
getMosaicManDevelopment()
Fetch a reference to the MosaicManDevelopment
|
java.util.List<java.lang.String> |
getMosaicQueueListString()
Return a List of the names of Mosaic jobs queued to be run.
|
boolean |
hasWorkToDo()
Is there work to be done? i.e.
|
boolean |
isBuilding()
Are we running the builder?
|
void |
outputMosaicFile()
Write the (possibly partially completed) mosaic output jpeg
|
void |
queueForBuilding(Mosaic mosaic)
Queue this Mosaic for building.
|
boolean |
runBuilder()
Build the first mosaic in the list.
|
void |
setDEBUG(boolean debugFlag)
Enable logger output on this module
|
void |
setDEBUGEngine(boolean debugFlag)
Enable logger output on any MosaicEngine spawned.
|
void |
setPicMan(PicManFacade pmf)
Set the reference to the PicMan API.
|
public void setPicMan(PicManFacade pmf)
pmf
- The PicManFacadepublic void setDEBUG(boolean debugFlag)
debugFlag
- true == turn on debugging.public void setDEBUGEngine(boolean debugFlag)
debugFlag
- true == turn on debugging.public MosaicManDevelopment getMosaicManDevelopment()
public MosaicEngine getMosaicEngine()
public boolean isBuilding()
public boolean hasWorkToDo()
public java.util.List<java.lang.String> getMosaicQueueListString()
public void queueForBuilding(Mosaic mosaic)
mosaic
- The Mosaic that the User wants builtpublic int emptyMosaicQueue()
public boolean runBuilder() throws java.lang.Exception
java.lang.Exception
- Something went wrong.public void outputMosaicFile()