BrightSide Workbench Full Report + Source Code
org.turro.scheduler.entities.EntityTask Class Reference
Inheritance diagram for org.turro.scheduler.entities.EntityTask:
Collaboration diagram for org.turro.scheduler.entities.EntityTask:

Public Member Functions

void execute ()
 
boolean isSystem ()
 
String getName ()
 
String getDataLabel ()
 
- Public Member Functions inherited from org.turro.scheduler.task.AbstractTask
void setConstructor (IConstructor constructor)
 
void setSettings (TaskSettings settings)
 
IConstructor getConstructor ()
 
TaskSettings getSettings ()
 
void setLastExecuted (Date lastExecuted)
 
boolean isDone ()
 
boolean shouldRun (Date now)
 
void doRun (Motor motor)
 
void stop ()
 
void run ()
 
String getColor ()
 
String getIcon ()
 
String getDescription ()
 
int compareTo (AbstractTask o)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 29 of file EntityTask.java.

Member Function Documentation

◆ execute()

void org.turro.scheduler.entities.EntityTask.execute ( )

Reimplemented from org.turro.scheduler.task.AbstractTask.

Definition at line 32 of file EntityTask.java.

32  {
33  IConstructor constructor = HeadlessApplication.getInstance().getConstructor();
34  Date now = new Date();
35  ScheduledEntitySet ses = new ScheduledEntitySet();
36  ScheduledEntitySet.loadSet(ses);
37  for(ScheduledEntity entity : ses) {
38  if(entity.shouldRun(now)) {
39  Object result = entity.doRun(constructor, now);
40  }
41  }
42  }
Here is the call graph for this function:

◆ getDataLabel()

String org.turro.scheduler.entities.EntityTask.getDataLabel ( )

Reimplemented from org.turro.scheduler.task.AbstractTask.

Definition at line 55 of file EntityTask.java.

55  {
56  return null;
57  }

◆ getName()

String org.turro.scheduler.entities.EntityTask.getName ( )

Reimplemented from org.turro.scheduler.task.AbstractTask.

Definition at line 50 of file EntityTask.java.

50  {
51  return "Entity Task Runner";
52  }
Here is the caller graph for this function:

◆ isSystem()

boolean org.turro.scheduler.entities.EntityTask.isSystem ( )

Reimplemented from org.turro.scheduler.task.AbstractTask.

Definition at line 45 of file EntityTask.java.

45  {
46  return true;
47  }

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