Class WorkUnit
- java.lang.Object
-
- org.apache.uima.collection.impl.cpm.engine.WorkUnit
-
public class WorkUnit extends java.lang.ObjectThe Class WorkUnit.
-
-
Constructor Summary
Constructors Constructor Description WorkUnit(java.lang.Object aPayload)Instantiates a new work unit.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectget()Gets the.CAS[]getCas()Gets the cas.booleanisTimedOut()Checks if is timed out.voidsetCas(CAS[] aCas)Sets the cas.voidsetTimedOut()Sets the timed out.
-
-
-
Field Detail
-
payload
private java.lang.Object payload
The payload.
-
cas
private CAS[] cas
The cas.
-
timedout
private boolean timedout
The timedout.
-
-
Method Detail
-
get
public java.lang.Object get()
Gets the.- Returns:
- the object
-
setCas
public void setCas(CAS[] aCas)
Sets the cas.- Parameters:
aCas- the new cas
-
getCas
public CAS[] getCas()
Gets the cas.- Returns:
- the cas
-
setTimedOut
public void setTimedOut()
Sets the timed out.
-
isTimedOut
public boolean isTimedOut()
Checks if is timed out.- Returns:
- true, if is timed out
-
-