C# Class social_learning.SocialAgent

Inheritance: NeuralAgent
Show file Open project: tansey/social-learning Class Usage Examples

Public Properties

Property Type Description
DEFAULT_MEMORY_SIZE int

Public Methods

Method Description
Reset ( ) : void
SocialAgent ( int id, int speciesId, IBlackBox brain, bool agentsNavigate, bool agentsHide, IAcceptabilityFunction accept ) : System

Constructs a social learning teacher controlled by the brain and using the give acceptability function.

SocialAgent ( int id, int speciesId, IBlackBox brain, bool agentsNavigate, bool agentsHide, Predicate accept ) : System

Constructs a social teacher using a lambda function for the acceptability function.

activateNetwork ( double sensors ) : ISignalArray
activateNetworkWithoutMemory ( double sensors ) : ISignalArray

Protected Methods

Method Description
ProcessReward ( double r ) : void

Method Details

ProcessReward() protected method

protected ProcessReward ( double r ) : void
r double
return void

Reset() public method

public Reset ( ) : void
return void

SocialAgent() public method

Constructs a social learning teacher controlled by the brain and using the give acceptability function.
public SocialAgent ( int id, int speciesId, IBlackBox brain, bool agentsNavigate, bool agentsHide, IAcceptabilityFunction accept ) : System
id int
speciesId int
brain IBlackBox
agentsNavigate bool
agentsHide bool
accept IAcceptabilityFunction
return System

SocialAgent() public method

Constructs a social teacher using a lambda function for the acceptability function.
public SocialAgent ( int id, int speciesId, IBlackBox brain, bool agentsNavigate, bool agentsHide, Predicate accept ) : System
id int
speciesId int
brain IBlackBox
agentsNavigate bool
agentsHide bool
accept Predicate
return System

activateNetwork() public method

public activateNetwork ( double sensors ) : ISignalArray
sensors double
return ISignalArray

activateNetworkWithoutMemory() public method

public activateNetworkWithoutMemory ( double sensors ) : ISignalArray
sensors double
return ISignalArray

Property Details

DEFAULT_MEMORY_SIZE public static property

public static int DEFAULT_MEMORY_SIZE
return int