|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.nak.cleaner.Simulator
public class Simulator
Simulator class Ver2.00
Field Summary | |
---|---|
boolean |
isLoadAmountConsidered
|
Constructor Summary | |
---|---|
Simulator()
The constructor. |
Method Summary | |
---|---|
boolean |
chargeBattery()
Charges battery. |
void |
checkBatteryWithInterval()
現在のロボットのバッテリー残量を返す(時間差:ICSE実験用) |
boolean |
existsDust()
Checks whether there are any dust items at the robot position. |
java.awt.Point |
find(java.lang.String targetType)
|
int |
getBattery()
Gets the current battery level. |
java.awt.Point |
getCurrentPoint()
Returns the current robot's position. |
FieldMap |
getFieldMap()
|
int |
getLoadAmount()
Gets the current load amount of the robot. |
Obstacle |
getObstacle()
|
VirtualRobot |
getRobot()
|
static Simulator |
getSimulator()
|
int |
getVisibleBattery()
現在のバッテリー(外部表示) (for EXP2) checkBatteryWithInterval()を実行しないと更新されない |
boolean |
isBatteryChecked()
|
boolean |
isCameraBroken()
Checks whether the camera module of the robot is broken. |
boolean |
isFinished()
Returns whether dust items remain in the field. |
boolean |
isLocatedOnDustBin()
Checks whether there are any dust bins at the robot position. |
boolean |
isLocatedOnStation()
Checks whether there are any battery stations at the robot position. |
java.lang.Boolean |
isReady()
Returns whether simulator can be executed. |
int |
moveNext(Direction d)
|
boolean |
pickUp()
|
void |
resetBatteryCheck()
ロボットのバッテリーチェックフラグをリセットする バッテリーチェックが完了したことを示す |
void |
setFieldMap(java.lang.String mapName)
Sets a map on simulator. |
void |
setObstacle(Obstacle or)
|
boolean |
sweep()
|
boolean |
unloadDust()
Unloads dust items into the dust bin |
Appearance |
watchObject()
Gets appearance of the object that the robot is located in the same place. |
boolean |
wipe()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean isLoadAmountConsidered
Constructor Detail |
---|
public Simulator()
Method Detail |
---|
public static Simulator getSimulator()
public void setFieldMap(java.lang.String mapName)
mapName
- Name of the mappublic FieldMap getFieldMap()
public java.lang.Boolean isReady()
public boolean isFinished()
public VirtualRobot getRobot()
public Obstacle getObstacle()
public void setObstacle(Obstacle or)
public java.awt.Point find(java.lang.String targetType)
public int moveNext(Direction d)
public boolean pickUp()
public boolean sweep()
public boolean wipe()
public boolean chargeBattery()
public boolean unloadDust()
public boolean existsDust()
public boolean isLocatedOnStation()
public boolean isLocatedOnDustBin()
public java.awt.Point getCurrentPoint()
public Appearance watchObject()
public void checkBatteryWithInterval()
public boolean isBatteryChecked()
public void resetBatteryCheck()
public int getVisibleBattery()
public int getBattery()
public int getLoadAmount()
public boolean isCameraBroken()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |