aima.test.probdecisiontest
Class CellWorldTest

java.lang.Object
  extended by TestCase
      extended by aima.test.probdecisiontest.CellWorldTest

public class CellWorldTest
extends TestCase


Constructor Summary
CellWorldTest()
           
 
Method Summary
 void setUp()
           
 void testCannotTransitionFromFinalState()
           
 void testMaximumTransitionDetection()
           
 void testMoveDownActuallyMovesLeftWhenProbabilityBetween80And90Percent()
           
 void testMoveDownActuallyMovesRightWhenProbabilityGreaterThan90Percent()
           
 void testMoveDownIntoBlockedCellLeavesPositionUnchanged()
           
 void testMoveDownIntoUnblockedCellChangesPositionCorrectly()
           
 void testMoveDownIntoWallLeavesPositionUnchanged()
           
 void testMoveFromATerminalStateFailsForAllProbabilityValues()
           
 void testMoveLeftIntoBlockedCellLeavesPositionUnchanged()
           
 void testMoveLeftIntoUnblockedCellActuallyMovesDownWhenProbabilityGreaterThan90Percent()
           
 void testMoveLeftIntoUnblockedCellActuallyMovesUpWhenProbabilityBetween80And90Percent()
           
 void testMoveLeftIntoUnblockedCellChangesPositionCorrectly()
           
 void testMoveLeftIntoWallLeavesPositionUnchanged()
           
 void testMoveRightIntoBlockedCellLeavesPositionUnchanged()
           
 void testMoveRightIntoUnblockedCellActuallyMovesDownWhenProbabilityGreaterThan90Percent()
           
 void testMoveRightIntoUnblockedCellActuallyMovesUpWhenProbabilityBetween80And90Percent()
           
 void testMoveRightIntoUnblockedCellChangesPositionCorrectly()
           
 void testMoveRightIntoWallLeavesPositionUnchanged()
           
 void testMoveUpActuallyMovesLeftWhenProbabilityBetween80And90Percent()
           
 void testMoveUpActuallyMovesRightWhenProbabilityGreaterThan90Percent()
           
 void testMoveUpIntoBlockedCellLeavesPositionUnchanged()
           
 void testMoveUpIntoUnblockedCellChangesPositionCorrectly()
           
 void testMoveUpIntoWallLeavesPositionUnchanged()
           
 void testNumberOfUnBlockedCells()
           
 void testTransitionModelCreation()
           
 void testTransitionProbabilityCalculationWhenBothRightAngledActiosnLeadToStartingPosition()
           
 void testTransitionProbabilityCalculationWhenEndingPositionCannotBeReachedUsingDesiredActionOrRightAngledSteps()
           
 void testTransitionProbabilityCalculationWhenEndingPositionIsNextToStartingPositionButIsBlocked()
           
 void testTransitionProbabilityCalculationWhenEndingPositionReachebleByExecutingSuggestedAction()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CellWorldTest

public CellWorldTest()
Method Detail

setUp

public void setUp()

testMoveLeftIntoWallLeavesPositionUnchanged

public void testMoveLeftIntoWallLeavesPositionUnchanged()

testMoveLeftIntoUnblockedCellChangesPositionCorrectly

public void testMoveLeftIntoUnblockedCellChangesPositionCorrectly()

testMoveLeftIntoUnblockedCellActuallyMovesUpWhenProbabilityBetween80And90Percent

public void testMoveLeftIntoUnblockedCellActuallyMovesUpWhenProbabilityBetween80And90Percent()

testMoveLeftIntoUnblockedCellActuallyMovesDownWhenProbabilityGreaterThan90Percent

public void testMoveLeftIntoUnblockedCellActuallyMovesDownWhenProbabilityGreaterThan90Percent()

testMoveLeftIntoBlockedCellLeavesPositionUnchanged

public void testMoveLeftIntoBlockedCellLeavesPositionUnchanged()

testMoveRightIntoWallLeavesPositionUnchanged

public void testMoveRightIntoWallLeavesPositionUnchanged()

testMoveRightIntoUnblockedCellChangesPositionCorrectly

public void testMoveRightIntoUnblockedCellChangesPositionCorrectly()

testMoveRightIntoBlockedCellLeavesPositionUnchanged

public void testMoveRightIntoBlockedCellLeavesPositionUnchanged()

testMoveRightIntoUnblockedCellActuallyMovesUpWhenProbabilityBetween80And90Percent

public void testMoveRightIntoUnblockedCellActuallyMovesUpWhenProbabilityBetween80And90Percent()

testMoveRightIntoUnblockedCellActuallyMovesDownWhenProbabilityGreaterThan90Percent

public void testMoveRightIntoUnblockedCellActuallyMovesDownWhenProbabilityGreaterThan90Percent()

testMoveUpIntoWallLeavesPositionUnchanged

public void testMoveUpIntoWallLeavesPositionUnchanged()

testMoveUpIntoUnblockedCellChangesPositionCorrectly

public void testMoveUpIntoUnblockedCellChangesPositionCorrectly()

testMoveUpIntoBlockedCellLeavesPositionUnchanged

public void testMoveUpIntoBlockedCellLeavesPositionUnchanged()

testMoveUpActuallyMovesLeftWhenProbabilityBetween80And90Percent

public void testMoveUpActuallyMovesLeftWhenProbabilityBetween80And90Percent()

testMoveUpActuallyMovesRightWhenProbabilityGreaterThan90Percent

public void testMoveUpActuallyMovesRightWhenProbabilityGreaterThan90Percent()

testMoveDownIntoWallLeavesPositionUnchanged

public void testMoveDownIntoWallLeavesPositionUnchanged()

testMoveDownIntoUnblockedCellChangesPositionCorrectly

public void testMoveDownIntoUnblockedCellChangesPositionCorrectly()

testMoveDownIntoBlockedCellLeavesPositionUnchanged

public void testMoveDownIntoBlockedCellLeavesPositionUnchanged()

testMoveDownActuallyMovesLeftWhenProbabilityBetween80And90Percent

public void testMoveDownActuallyMovesLeftWhenProbabilityBetween80And90Percent()

testMoveDownActuallyMovesRightWhenProbabilityGreaterThan90Percent

public void testMoveDownActuallyMovesRightWhenProbabilityGreaterThan90Percent()

testNumberOfUnBlockedCells

public void testNumberOfUnBlockedCells()

testMoveFromATerminalStateFailsForAllProbabilityValues

public void testMoveFromATerminalStateFailsForAllProbabilityValues()

testTransitionProbabilityCalculationWhenEndingPositionIsNextToStartingPositionButIsBlocked

public void testTransitionProbabilityCalculationWhenEndingPositionIsNextToStartingPositionButIsBlocked()

testTransitionProbabilityCalculationWhenEndingPositionCannotBeReachedUsingDesiredActionOrRightAngledSteps

public void testTransitionProbabilityCalculationWhenEndingPositionCannotBeReachedUsingDesiredActionOrRightAngledSteps()

testTransitionProbabilityCalculationWhenEndingPositionReachebleByExecutingSuggestedAction

public void testTransitionProbabilityCalculationWhenEndingPositionReachebleByExecutingSuggestedAction()

testTransitionProbabilityCalculationWhenBothRightAngledActiosnLeadToStartingPosition

public void testTransitionProbabilityCalculationWhenBothRightAngledActiosnLeadToStartingPosition()

testTransitionModelCreation

public void testTransitionModelCreation()

testCannotTransitionFromFinalState

public void testCannotTransitionFromFinalState()

testMaximumTransitionDetection

public void testMaximumTransitionDetection()