C# Class AIMA.Core.Environment.Map.ExtendableMap

Inheritance: Map
Mostra file Open project: PaulMineau/AIMA.Net Class Usage Examples

Public Methods

Method Description
ExtendableMap ( ) : System
addBidirectionalLink ( String fromLocation, String toLocation, Double distance ) : void
addUnidirectionalLink ( String fromLocation, String toLocation, Double distance ) : void
clear ( ) : void
clearLinks ( ) : void
getDistance ( String fromLocation, String toLocation ) : Double
getLocations ( ) : List
getLocationsLinkedTo ( String fromLocation ) : List
getPosition ( String loc ) : Point2D
isLocation ( String str ) : bool
randomlyGenerateDestination ( ) : String
removeBidirectionalLink ( String fromLocation, String toLocation ) : void
removeUnidirectionalLink ( String fromLocation, String toLocation ) : void
setDistAndDirToRefLocation ( String loc, double dist, int dir ) : void
setPosition ( String loc, double x, double y ) : void

Method Details

ExtendableMap() public method

public ExtendableMap ( ) : System
return System

addBidirectionalLink() public method

public addBidirectionalLink ( String fromLocation, String toLocation, Double distance ) : void
fromLocation String
toLocation String
distance Double
return void

addUnidirectionalLink() public method

public addUnidirectionalLink ( String fromLocation, String toLocation, Double distance ) : void
fromLocation String
toLocation String
distance Double
return void

clear() public method

public clear ( ) : void
return void

clearLinks() public method

public clearLinks ( ) : void
return void

getDistance() public method

public getDistance ( String fromLocation, String toLocation ) : Double
fromLocation String
toLocation String
return Double

getLocations() public method

public getLocations ( ) : List
return List

getLocationsLinkedTo() public method

public getLocationsLinkedTo ( String fromLocation ) : List
fromLocation String
return List

getPosition() public method

public getPosition ( String loc ) : Point2D
loc String
return AIMA.Core.Util.DataStructure.Point2D

isLocation() public method

public isLocation ( String str ) : bool
str String
return bool

randomlyGenerateDestination() public method

public randomlyGenerateDestination ( ) : String
return String

removeBidirectionalLink() public method

public removeBidirectionalLink ( String fromLocation, String toLocation ) : void
fromLocation String
toLocation String
return void

removeUnidirectionalLink() public method

public removeUnidirectionalLink ( String fromLocation, String toLocation ) : void
fromLocation String
toLocation String
return void

setDistAndDirToRefLocation() public method

public setDistAndDirToRefLocation ( String loc, double dist, int dir ) : void
loc String
dist double
dir int
return void

setPosition() public method

public setPosition ( String loc, double x, double y ) : void
loc String
x double
y double
return void