|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjp.digitalmuseum.mr.entity.ResourceAbstractImpl
jp.digitalmuseum.mr.hakoniwa.HakoniwaRobot.HakoniwaRobotWheels
protected static class HakoniwaRobot.HakoniwaRobotWheels
HakoniwaRobot,
直列化された形式
| 入れ子のクラスの概要 |
|---|
| インタフェース jp.digitalmuseum.mr.resource.Wheels から継承された入れ子のクラス/インタフェース |
|---|
Wheels.Spin, Wheels.WheelsStatus |
| メソッドの概要 | |
|---|---|
void |
curve(Wheels.Spin direction,
int innerSpeed)
Go forward and rotate left/right. |
void |
curveLeft(int innerSpeed)
Go forward and rotate left. |
void |
curveRight(int innerSpeed)
Go forward and rotate right. |
boolean |
drive(int leftPower,
int rightPower)
Drive two wheels with given set of power. |
int |
getLeftWheelPower()
Get the current power of the left motor. |
int |
getRecommendedRotationSpeed()
Get the recommended value for rotation speed. |
int |
getRecommendedSpeed()
Get the recommended value for default speed. |
int |
getRightWheelPower()
Get the current power of the right motor. |
int |
getRotationSpeed()
Get the current power of the motor to rotate. |
int |
getSpeed()
Get the current power of the motor. |
Wheels.WheelsStatus |
getStatus()
Get status of the wheels. |
void |
goBackward()
Go backward. |
void |
goForward()
Go forward. |
protected void |
onFree()
Called when disposing this resource. Caution: This method should not be called outside this class. |
boolean |
setRotationSpeed(int rotationSpeed)
Change the power of the motor to rotate. |
boolean |
setSpeed(int speed)
Change the power of the motor. |
void |
spin(Wheels.Spin direction)
Spin left/right. |
void |
spinLeft()
Spin left. |
void |
spinRight()
Spin right. |
void |
stopWheels()
Stop. |
| クラス jp.digitalmuseum.mr.entity.ResourceAbstractImpl から継承されたメソッド |
|---|
getConfigurationComponent, getReaders, getRobot, getWriter, isWritable, toString |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| インタフェース jp.digitalmuseum.mr.entity.ExclusiveResource から継承されたメソッド |
|---|
getWriter, isWritable |
| インタフェース jp.digitalmuseum.mr.entity.Resource から継承されたメソッド |
|---|
getConfigurationComponent, getReaders, getRobot |
| メソッドの詳細 |
|---|
protected void onFree()
ResourceAbstractImpl の記述:ResourceAbstractImpl 内の onFree
ResourceAbstractImpl.free(Object)public Wheels.WheelsStatus getStatus()
Wheels の記述:Wheels 内の getStatus
public int getRecommendedSpeed()
DifferentialWheels の記述:DifferentialWheels 内の getRecommendedSpeed
public int getRecommendedRotationSpeed()
DifferentialWheels の記述:DifferentialWheels 内の getRecommendedRotationSpeed
public int getSpeed()
DifferentialWheels の記述:DifferentialWheels 内の getSpeed
public boolean setSpeed(int speed)
DifferentialWheelsController の記述:DifferentialWheelsController 内の setSpeed
public int getRotationSpeed()
DifferentialWheels の記述:DifferentialWheels 内の getRotationSpeed
public boolean setRotationSpeed(int rotationSpeed)
DifferentialWheelsController の記述:DifferentialWheelsController 内の setRotationSpeed
public int getLeftWheelPower()
DifferentialWheels の記述:DifferentialWheels 内の getLeftWheelPower
public int getRightWheelPower()
DifferentialWheels の記述:DifferentialWheels 内の getRightWheelPower
public void goBackward()
WheelsController の記述:WheelsController 内の goBackward
public void goForward()
WheelsController の記述:WheelsController 内の goForward
public void spin(Wheels.Spin direction)
WheelsController の記述:WheelsController 内の spin
public void spinLeft()
WheelsController の記述:WheelsController 内の spinLeft
public void spinRight()
WheelsController の記述:WheelsController 内の spinRight
public void curve(Wheels.Spin direction,
int innerSpeed)
DifferentialWheelsController の記述:DifferentialWheelsController 内の curve
public void curveLeft(int innerSpeed)
DifferentialWheelsController の記述:DifferentialWheelsController 内の curveLeft
public void curveRight(int innerSpeed)
DifferentialWheelsController の記述:DifferentialWheelsController 内の curveRight
public void stopWheels()
WheelsController の記述:WheelsController 内の stopWheels
public boolean drive(int leftPower,
int rightPower)
DifferentialWheelsController の記述:DifferentialWheelsController 内の drive
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||