Package | Description |
---|---|
org.tinygroup.tinypc | |
org.tinygroup.tinypc.impl |
Modifier and Type | Method and Description |
---|---|
List<Worker> |
JobCenter.getWorkerList(Work work)
返回具有某种类型的空闲且愿意接受工作的工人列表
|
Modifier and Type | Method and Description |
---|---|
void |
JobCenter.registerWorker(Worker worker)
注册工人
|
void |
JobCenter.unregisterWorker(Worker worker)
注消工人
|
Modifier and Type | Method and Description |
---|---|
List<Warehouse> |
WorkSplitter.split(Work work,
List<Worker> workers)
把一个任务分解为多个任务
|
Warehouse |
Foreman.work(Work work,
List<Worker> workerList)
开始干活以完成工作
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractWorker
抽象工人,建议所有的工人都继承自此类
Created by luoguo on 14-1-8.
|
Modifier and Type | Method and Description |
---|---|
List<Worker> |
AbstractJobCenter.getWorkerList(Work work) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractJobCenter.registerWorker(Worker worker) |
void |
AbstractJobCenter.unregisterWorker(Worker worker) |
Modifier and Type | Method and Description |
---|---|
Warehouse |
ForemanSelectOneWorker.work(Work work,
List<Worker> workerList) |
Warehouse |
ForemanSelectAllWorker.work(Work work,
List<Worker> workerList) |
Constructor and Description |
---|
WorkExecutor(Work work,
Worker worker,
List<Warehouse> warehouseList,
List<Worker> workers) |
Constructor and Description |
---|
WorkExecutor(Work work,
Worker worker,
List<Warehouse> warehouseList,
List<Worker> workers) |
Copyright © 2006–2018 TinyGroup. All rights reserved.