BrightSide Workbench Full Report + Source Code
org.turro.erp.entity.TaskStatus Enum Reference

Public Member Functions

int getStatusOrder ()
 
int getWorkOrder ()
 
EnumSet< TaskStatusgetPossibleStatus ()
 

Static Public Member Functions

static boolean isReady (TaskStatus status)
 
static boolean isOnWork (TaskStatus status)
 
static boolean hasStarted (TaskStatus status)
 
static boolean isFinished (TaskStatus status)
 

Public Attributes

 TASK_PLANNING =(2, 0)
 
 TASK_READY =(1, 1)
 
 TASK_ONWORK =(0, 2)
 
 TASK_FINISHED =(3, 3)
 
int statusOrder
 

Detailed Description

Member Function Documentation

◆ getPossibleStatus()

EnumSet<TaskStatus> org.turro.erp.entity.TaskStatus.getPossibleStatus ( )

Definition at line 48 of file BrightSide/bserp-core/src/main/java/org/turro/erp/entity/TaskStatus.java.

48  {
49  EnumSet<TaskStatus> statusSet = EnumSet.of(this);
50  for(TaskStatus ts : values()) {
51  if(ts.statusOrder > statusOrder) {
52  statusSet.add(ts);
53  }
54  }
55  return statusSet;
56  }

◆ getStatusOrder()

int org.turro.erp.entity.TaskStatus.getStatusOrder ( )

Definition at line 40 of file BrightSide/bserp-core/src/main/java/org/turro/erp/entity/TaskStatus.java.

40  {
41  return statusOrder;
42  }
Here is the caller graph for this function:

◆ getWorkOrder()

int org.turro.erp.entity.TaskStatus.getWorkOrder ( )

Definition at line 44 of file BrightSide/bserp-core/src/main/java/org/turro/erp/entity/TaskStatus.java.

44  {
45  return workOrder;
46  }
Here is the caller graph for this function:

◆ hasStarted()

◆ isFinished()

static boolean org.turro.erp.entity.TaskStatus.isFinished ( TaskStatus  status)
static

Definition at line 70 of file BrightSide/bserp-core/src/main/java/org/turro/erp/entity/TaskStatus.java.

70  {
71  return EnumSet.of(TASK_FINISHED).contains(status);
72  }
Here is the caller graph for this function:

◆ isOnWork()

static boolean org.turro.erp.entity.TaskStatus.isOnWork ( TaskStatus  status)
static

Definition at line 62 of file BrightSide/bserp-core/src/main/java/org/turro/erp/entity/TaskStatus.java.

62  {
63  return EnumSet.of(TASK_READY, TASK_ONWORK).contains(status);
64  }
Here is the caller graph for this function:

◆ isReady()

static boolean org.turro.erp.entity.TaskStatus.isReady ( TaskStatus  status)
static

Definition at line 58 of file BrightSide/bserp-core/src/main/java/org/turro/erp/entity/TaskStatus.java.

58  {
59  return EnumSet.of(TASK_READY).contains(status);
60  }
Here is the caller graph for this function:

Member Data Documentation

◆ statusOrder

int org.turro.erp.entity.TaskStatus.statusOrder

◆ TASK_FINISHED

org.turro.erp.entity.TaskStatus.TASK_FINISHED =(3, 3)

◆ TASK_ONWORK

org.turro.erp.entity.TaskStatus.TASK_ONWORK =(0, 2)

◆ TASK_PLANNING

org.turro.erp.entity.TaskStatus.TASK_PLANNING =(2, 0)

◆ TASK_READY

org.turro.erp.entity.TaskStatus.TASK_READY =(1, 1)

The documentation for this enum was generated from the following file: