public class WorkDefault extends Object implements Work
Constructor and Description |
---|
WorkDefault(String type) |
WorkDefault(String type,
String id) |
WorkDefault(String type,
String id,
Warehouse inputWarehouse) |
WorkDefault(String type,
Warehouse inputWarehouse) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getForemanType()
返回对应的包工头类型,如果没有包工头类型,则使用默认类型
|
String |
getId()
返回唯一ID
|
Warehouse |
getInputWarehouse()
返回输入仓库
|
Work |
getNextWork()
返回后续步骤的工作,如果有,说明是复合工作,如果没有,说明是简单工作
|
String |
getType()
返回工作类型,每个工作都有一个工作类型,包工头及工人只能处理同样类型的工作
|
WorkStatus |
getWorkStatus()
获取工作状态
|
int |
hashCode() |
boolean |
isNeedSerialize()
是否需要序列化
|
void |
setForemanType(String foremanType) |
void |
setInputWarehouse(Warehouse inputWarehouse)
设置输入仓库
|
void |
setNeedSerialize(boolean needSerialize)
设置是否需要进行序列化,如果要用到MQ,则需要设置为需要序列化
|
Work |
setNextWork(Work nextStepWork)
设置后续步骤工作
|
void |
setWorkStatus(WorkStatus workStatus)
设置工作状态
|
public WorkDefault(String type) throws RemoteException
RemoteException
public WorkDefault(String type, String id) throws RemoteException
RemoteException
public WorkDefault(String type, Warehouse inputWarehouse) throws RemoteException
RemoteException
public WorkDefault(String type, String id, Warehouse inputWarehouse) throws RemoteException
RemoteException
public String getType()
Work
public Work getNextWork()
Work
getNextWork
in interface Work
public Work setNextWork(Work nextStepWork)
Work
setNextWork
in interface Work
nextStepWork
- 后续工作public boolean isNeedSerialize()
Work
isNeedSerialize
in interface Work
public void setNeedSerialize(boolean needSerialize)
Work
setNeedSerialize
in interface Work
needSerialize
- true表示工作永不丢失,false表示容器关闭即丢失public WorkStatus getWorkStatus()
Work
getWorkStatus
in interface Work
public void setWorkStatus(WorkStatus workStatus)
Work
setWorkStatus
in interface Work
public Warehouse getInputWarehouse()
Work
getInputWarehouse
in interface Work
public void setInputWarehouse(Warehouse inputWarehouse)
Work
setInputWarehouse
in interface Work
public String getForemanType()
Work
getForemanType
in interface Work
public void setForemanType(String foremanType)
Copyright © 2006–2018 TinyGroup. All rights reserved.