C# Class AIMA.Core.Environment.XYEnv.XYEnvironmentState

Inheritance: EnvironmentState
Show file Open project: PaulMineau/AIMA.Net Class Usage Examples

Public Methods

Method Description
ToString ( ) : String
XYEnvironmentState ( int width, int height ) : System
getCurrentLocationFor ( EnvironmentObject eo ) : XYLocation
getObjectsAt ( XYLocation loc ) : HashSet
getObjectsNear ( Agent agent, int radius ) : HashSet
moveObjectToAbsoluteLocation ( EnvironmentObject eo, XYLocation loc ) : void

Private Methods

Method Description
withinRadius ( int radius, XYLocation agentLocation, XYLocation objectLocation ) : bool

Method Details

ToString() public method

public ToString ( ) : String
return String

XYEnvironmentState() public method

public XYEnvironmentState ( int width, int height ) : System
width int
height int
return System

getCurrentLocationFor() public method

public getCurrentLocationFor ( EnvironmentObject eo ) : XYLocation
eo EnvironmentObject
return AIMA.Core.Util.DataStructure.XYLocation

getObjectsAt() public method

public getObjectsAt ( XYLocation loc ) : HashSet
loc AIMA.Core.Util.DataStructure.XYLocation
return HashSet

getObjectsNear() public method

public getObjectsNear ( Agent agent, int radius ) : HashSet
agent Agent
radius int
return HashSet

moveObjectToAbsoluteLocation() public method

public moveObjectToAbsoluteLocation ( EnvironmentObject eo, XYLocation loc ) : void
eo EnvironmentObject
loc AIMA.Core.Util.DataStructure.XYLocation
return void