jp.digitalmuseum.mr.task
クラス MobileTaskAbstractImpl

java.lang.Object
  上位を拡張 jp.digitalmuseum.mr.service.ServiceAbstractImpl
      上位を拡張 jp.digitalmuseum.mr.task.TaskAbstractImpl
          上位を拡張 jp.digitalmuseum.mr.task.MobileTaskAbstractImpl
すべての実装されたインタフェース:
java.io.Serializable, java.lang.Runnable, EventProvider, Service, MobileTask, Task
直系の既知のサブクラス:
GoBackward, GoForward, LocationBasedTaskAbstractImpl, MobileCleaningTask, MobilePenTask, SpinLeft, SpinRight, Stop

public abstract class MobileTaskAbstractImpl
extends TaskAbstractImpl
implements MobileTask
Abstract implementation of MobileTask.
作成者:
Jun KATO
関連項目:
直列化された形式

フィールドの概要
 
クラス jp.digitalmuseum.mr.service.ServiceAbstractImpl から継承されたフィールド
DEFAULT_INTERVAL
 
コンストラクタの概要
MobileTaskAbstractImpl()
           
 
メソッドの概要
 int getRecommendedRotationSpeed()
          Get the recommended value for rotation speed.
 int getRecommendedSpeed()
          Get the recommended value for default speed.
 java.util.List<java.lang.Class<? extends Resource>> getRequirements()
           
 int getRotationSpeed()
          Get the current power of the motor to rotate.
 int getSpeed()
          Get the current power of the motor.
protected  WheelsController getWheels()
           
protected  void onAssigned()
          Called when this task is assigned to a robot.
protected  void onPause()
          Called when this service pauses.
 boolean setRotationSpeed(int speed)
          Change the power of the motor to rotate.
 boolean setSpeed(int speed)
          Change the power of the motor.
 
クラス jp.digitalmuseum.mr.task.TaskAbstractImpl から継承されたメソッド
assign, finish, getAssignedRobot, getName, getResourceMap, getSubflow, hasSubflow, initialize, isAssignable, isAssigned, requirementsSuppliable, setSubflow, start, stop
 
クラス jp.digitalmuseum.mr.service.ServiceAbstractImpl から継承されたメソッド
addEventListener, dispose, distributeEvent, getAliveTime, getConfigurationComponent, getInterval, getServiceGroup, isDisposed, isPaused, isStarted, onResume, onStart, onStop, pause, removeEventListener, resume, setInterval, setServiceGroup, start, toString
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
インタフェース jp.digitalmuseum.mr.task.Task から継承されたメソッド
assign, getAssignedRobot, getSubflow, hasSubflow, isAssignable, isAssigned
 
インタフェース 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
 
インタフェース jp.digitalmuseum.mr.message.EventProvider から継承されたメソッド
addEventListener, removeEventListener
 
コンストラクタの詳細

MobileTaskAbstractImpl

public MobileTaskAbstractImpl()
メソッドの詳細

getRequirements

public java.util.List<java.lang.Class<? extends Resource>> getRequirements()
定義:
インタフェース Task 内の getRequirements
オーバーライド:
クラス TaskAbstractImpl 内の getRequirements
戻り値:
Returns a set of required interfaces (including Wheels) for this task.

onAssigned

protected void onAssigned()
クラス TaskAbstractImpl の記述:
Called when this task is assigned to a robot. This method is usually used for getting a resource object and saving it to a instance field.
オーバーライド:
クラス TaskAbstractImpl 内の onAssigned

onPause

protected void onPause()
クラス ServiceAbstractImpl の記述:
Called when this service pauses.
オーバーライド:
クラス ServiceAbstractImpl 内の onPause

getWheels

protected WheelsController getWheels()

getRecommendedSpeed

public int getRecommendedSpeed()
インタフェース MobileTask の記述:
Get the recommended value for default speed.
定義:
インタフェース MobileTask 内の getRecommendedSpeed
関連項目:
DifferentialWheels.getRecommendedSpeed()

getRecommendedRotationSpeed

public int getRecommendedRotationSpeed()
インタフェース MobileTask の記述:
Get the recommended value for rotation speed.
定義:
インタフェース MobileTask 内の getRecommendedRotationSpeed
関連項目:
DifferentialWheels.getRecommendedRotationSpeed()

setSpeed

public boolean setSpeed(int speed)
インタフェース MobileTask の記述:
Change the power of the motor.
定義:
インタフェース MobileTask 内の setSpeed
関連項目:
DifferentialWheelsController.setSpeed(int)

getSpeed

public int getSpeed()
インタフェース MobileTask の記述:
Get the current power of the motor.
定義:
インタフェース MobileTask 内の getSpeed
関連項目:
DifferentialWheels.getSpeed()

setRotationSpeed

public boolean setRotationSpeed(int speed)
インタフェース MobileTask の記述:
Change the power of the motor to rotate.
定義:
インタフェース MobileTask 内の setRotationSpeed
関連項目:
DifferentialWheelsController.setRotationSpeed(int)

getRotationSpeed

public int getRotationSpeed()
インタフェース MobileTask の記述:
Get the current power of the motor to rotate.
定義:
インタフェース MobileTask 内の getRotationSpeed
関連項目:
DifferentialWheels.getRotationSpeed()


Copyright by Jun KATO (arc@dmz) at https://mr.digitalmuseum.jp/