jp.digitalmuseum.mr.task
インタフェース Task
-
すべてのスーパーインタフェース:
-
EventProvider, java.lang.Runnable, java.io.Serializable, Service
-
既知のサブインタフェースの一覧:
-
LocationBasedTask, MobileTask
-
既知の実装クラスの一覧:
-
AvoidCollision, Capture, DrawPath, EndCleaning, EndPen, FillPath, FillPathLoosely, Follow, FollowVectorField, GoBackward, GoForward, LocationBasedTaskAbstractImpl, MobileCleaningTask, MobilePenTask, MobileTaskAbstractImpl, Move, Push, PutPen, Rotate, SpinLeft, SpinRight, StartCleaning, Stop, TaskAbstractImpl, TracePath, TracePathLoosely, VectorFieldTask
-
public interface Task
- extends Service
Task interface
- 作成者:
- Jun KATO
インタフェース jp.digitalmuseum.mr.service.Service から継承されたメソッド |
dispose, getAliveTime, getConfigurationComponent, getInterval, getName, getServiceGroup, isDisposed, isPaused, isStarted, pause, resume, setInterval, setServiceGroup, start, start, stop |
インタフェース java.lang.Runnable から継承されたメソッド |
run |
getRequirements
java.util.List<java.lang.Class<? extends Resource>> getRequirements()
- 戻り値:
- Returns an array of required interfaces for this task
assign
boolean assign(Robot robot)
- Assign this task to a robot.
- パラメータ:
-
robot
-
- 戻り値:
- Returns false if required resources of the robot are busy.
isAssignable
boolean isAssignable(Robot robot)
- 戻り値:
- Returns if this task can be assigned to the robot.
isAssigned
boolean isAssigned()
- 戻り値:
- Returns if this task is assigned to a robot.
getAssignedRobot
Robot getAssignedRobot()
- 戻り値:
- Returns the assigned robot.
hasSubflow
boolean hasSubflow()
- 戻り値:
- Returns if this task is running a workflow graph inside.
getSubflow
Workflow getSubflow()
- 戻り値:
- Returns a workflow graph running inside this task.
Copyright by Jun KATO (arc@dmz) at https://mr.digitalmuseum.jp/