C# Class AIMA.Core.Agent.Impl.AbstractEnvironment

Inheritance: Environment, EnvironmentViewNotifier
Mostra file Open project: PaulMineau/AIMA.Net

Protected Properties

Property Type Description
agents HashSet
envObjects HashSet
performanceMeasures System.Double>.Map
views HashSet

Public Methods

Method Description
addAgent ( IAgent a ) : void
addEnvironmentObject ( EnvironmentObject eo ) : void
addEnvironmentView ( EnvironmentView ev ) : void
createExogenousChange ( ) : void
executeAction ( IAgent agent, Action action ) : EnvironmentState
getAgents ( ) : List
getCurrentState ( ) : EnvironmentState
getEnvironmentObjects ( ) : List
getPerceptSeenBy ( IAgent anAgent ) : Percept
getPerformanceMeasure ( IAgent forAgent ) : double
isDone ( ) : bool
notifyViews ( System msg ) : void
removeAgent ( IAgent a ) : void
removeEnvironmentObject ( EnvironmentObject eo ) : void
removeEnvironmentView ( EnvironmentView ev ) : void
step ( ) : void
step ( int n ) : void
stepUntilDone ( ) : void

Protected Methods

Method Description
updateEnvironmentViewsAgentActed ( IAgent agent, Action action, EnvironmentState state ) : void
updateEnvironmentViewsAgentAdded ( IAgent agent ) : void
updatePerformanceMeasure ( IAgent forAgent, double addTo ) : void

Method Details

addAgent() public method

public addAgent ( IAgent a ) : void
a IAgent
return void

addEnvironmentObject() public method

public addEnvironmentObject ( EnvironmentObject eo ) : void
eo EnvironmentObject
return void

addEnvironmentView() public method

public addEnvironmentView ( EnvironmentView ev ) : void
ev EnvironmentView
return void

createExogenousChange() public method

public createExogenousChange ( ) : void
return void

executeAction() public abstract method

public abstract executeAction ( IAgent agent, Action action ) : EnvironmentState
agent IAgent
action Action
return EnvironmentState

getAgents() public method

public getAgents ( ) : List
return List

getCurrentState() public abstract method

public abstract getCurrentState ( ) : EnvironmentState
return EnvironmentState

getEnvironmentObjects() public method

public getEnvironmentObjects ( ) : List
return List

getPerceptSeenBy() public abstract method

public abstract getPerceptSeenBy ( IAgent anAgent ) : Percept
anAgent IAgent
return Percept

getPerformanceMeasure() public method

public getPerformanceMeasure ( IAgent forAgent ) : double
forAgent IAgent
return double

isDone() public method

public isDone ( ) : bool
return bool

notifyViews() public method

public notifyViews ( System msg ) : void
msg System
return void

removeAgent() public method

public removeAgent ( IAgent a ) : void
a IAgent
return void

removeEnvironmentObject() public method

public removeEnvironmentObject ( EnvironmentObject eo ) : void
eo EnvironmentObject
return void

removeEnvironmentView() public method

public removeEnvironmentView ( EnvironmentView ev ) : void
ev EnvironmentView
return void

step() public method

public step ( ) : void
return void

step() public method

public step ( int n ) : void
n int
return void

stepUntilDone() public method

public stepUntilDone ( ) : void
return void

updateEnvironmentViewsAgentActed() protected method

protected updateEnvironmentViewsAgentActed ( IAgent agent, Action action, EnvironmentState state ) : void
agent IAgent
action Action
state EnvironmentState
return void

updateEnvironmentViewsAgentAdded() protected method

protected updateEnvironmentViewsAgentAdded ( IAgent agent ) : void
agent IAgent
return void

updatePerformanceMeasure() protected method

protected updatePerformanceMeasure ( IAgent forAgent, double addTo ) : void
forAgent IAgent
addTo double
return void

Property Details

agents protected_oe property

protected HashSet agents
return HashSet

envObjects protected_oe property

protected HashSet envObjects
return HashSet

performanceMeasures protected_oe property

protected Map performanceMeasures
return System.Double>.Map

views protected_oe property

protected HashSet views
return HashSet