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

Inheritance: AIMA.Core.Agent.Impl.AbstractEnvironment
Datei anzeigen Open project: PaulMineau/AIMA.Net

Public Methods

Method Description
XYEnvironment ( int width, int height ) : System
addObjectToLocation ( EnvironmentObject eo, XYLocation loc ) : void
executeAction ( Agent a, System.Action action ) : EnvironmentState
getCurrentLocationFor ( EnvironmentObject eo ) : XYLocation
getCurrentState ( ) : EnvironmentState
getObjectsAt ( XYLocation loc ) : HashSet
getObjectsNear ( Agent agent, int radius ) : HashSet
getPerceptSeenBy ( Agent anAgent ) : Percept
isBlocked ( XYLocation loc ) : bool
makePerimeter ( ) : void
moveObject ( EnvironmentObject eo, XYLocation direction ) : void
moveObjectToAbsoluteLocation ( EnvironmentObject eo, XYLocation loc ) : void

Method Details

XYEnvironment() public method

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

addObjectToLocation() public method

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

executeAction() public method

public executeAction ( Agent a, System.Action action ) : EnvironmentState
a Agent
action System.Action
return EnvironmentState

getCurrentLocationFor() public method

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

getCurrentState() public method

public getCurrentState ( ) : EnvironmentState
return EnvironmentState

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

getPerceptSeenBy() public method

public getPerceptSeenBy ( Agent anAgent ) : Percept
anAgent Agent
return Percept

isBlocked() public method

public isBlocked ( XYLocation loc ) : bool
loc AIMA.Core.Util.DataStructure.XYLocation
return bool

makePerimeter() public method

public makePerimeter ( ) : void
return void

moveObject() public method

public moveObject ( EnvironmentObject eo, XYLocation direction ) : void
eo EnvironmentObject
direction AIMA.Core.Util.DataStructure.XYLocation
return void

moveObjectToAbsoluteLocation() public method

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