|
Gridarta Editor
|
Inheritance diagram for net.sf.gridarta.commands.Collector:
Collaboration diagram for net.sf.gridarta.commands.Collector:Public Member Functions | |
| Collector (@NotNull final Progress progress, @NotNull final AbstractResources<?, ?, ?> resources, @NotNull final File collectedDirectory) | |
| void | run () |
| void | start () |
| void | waitUntilFinished () throws InterruptedException |
Private Attributes | |
| final File | collectedDirectory |
| final Progress | progress |
| final AbstractResources<?, ?, ?> | resources |
| Thread | thread |
Static Private Attributes | |
| static final ActionBuilder | ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta") |
A Collector is capable of iterating over a collection of {Collectables} and collecting them in a separate Thread with a nice GUI. Christian Hujer
Definition at line 37 of file Collector.java.
| net.sf.gridarta.commands.Collector.Collector | ( | @NotNull final Progress | progress, |
| @NotNull final AbstractResources<?, ?, ?> | resources, | ||
| @NotNull final File | collectedDirectory | ||
| ) |
Creates a new instance.
| progress | the progress to use |
| resources | the resources to collect |
| collectedDirectory | the destination directory to write files to |
Definition at line 75 of file Collector.java.
References net.sf.gridarta.model.resource.AbstractResources< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.canWriteCollected(), net.sf.gridarta.commands.Collector.collectedDirectory, net.sf.gridarta.commands.Collector.progress, and net.sf.gridarta.commands.Collector.resources.
Here is the call graph for this function:| void net.sf.gridarta.commands.Collector.run | ( | ) |
Definition at line 112 of file Collector.java.
References net.sf.gridarta.commands.Collector.ACTION_BUILDER, net.sf.gridarta.commands.Collector.collectedDirectory, net.sf.gridarta.commands.Collector.progress, net.sf.gridarta.commands.Collector.resources, and net.sf.gridarta.model.resource.AbstractResources< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.writeCollected().
Here is the call graph for this function:| void net.sf.gridarta.commands.Collector.start | ( | ) |
Starts collecting.
Definition at line 87 of file Collector.java.
References net.sf.gridarta.commands.Collector.thread.
Referenced by net.sf.gridarta.action.CollectArchesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doCollectArches(), and net.sf.gridarta.commands.CollectArchesCommand.execute().
Here is the caller graph for this function:| void net.sf.gridarta.commands.Collector.waitUntilFinished | ( | ) | throws InterruptedException |
Waits until collection has finished.
| InterruptedException | if waiting was interrupted |
Definition at line 96 of file Collector.java.
References net.sf.gridarta.commands.Collector.thread.
Referenced by net.sf.gridarta.commands.CollectArchesCommand.execute(), and net.sf.gridarta.action.CollectArchesAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.newExiterListener().
Here is the caller graph for this function:
|
staticprivate |
Action Builder.
Definition at line 43 of file Collector.java.
Referenced by net.sf.gridarta.commands.Collector.run().
|
private |
The destination directory to write files to.
Definition at line 55 of file Collector.java.
Referenced by net.sf.gridarta.commands.Collector.Collector(), and net.sf.gridarta.commands.Collector.run().
|
private |
The Progress to use.
Definition at line 61 of file Collector.java.
Referenced by net.sf.gridarta.commands.Collector.Collector(), and net.sf.gridarta.commands.Collector.run().
|
private |
The Collectables.
Definition at line 49 of file Collector.java.
Referenced by net.sf.gridarta.commands.Collector.Collector(), and net.sf.gridarta.commands.Collector.run().
|
private |
The worker thread.
Definition at line 67 of file Collector.java.
Referenced by net.sf.gridarta.commands.Collector.start(), and net.sf.gridarta.commands.Collector.waitUntilFinished().