cz.cuni.amis.pogamut.sposh.context
Class Context<AGENT>

Package class diagram package Context
java.lang.Object
  extended by cz.cuni.amis.pogamut.sposh.context.Context<AGENT>
All Implemented Interfaces:
IContext<AGENT>

public class Context<AGENT>
extends Object
implements IContext<AGENT>

This is the "original" context from which all others should be derived. Context is used in state primitives (i.e. IAction andISense) to access "shared" info. This is the "basic version," there are other versions tailored with modules for other environments, such as UT2004Context.

Author:
Honza

Field Summary
protected  AGENT bot
           
protected  String name
           
 
Constructor Summary
protected Context(String name, AGENT bot)
          Create new context.
 
Method Summary
 AGENT getBot()
          Get bot for this context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected final String name

bot

protected final AGENT bot
Constructor Detail

Context

protected Context(String name,
                  AGENT bot)
Create new context.

Parameters:
name - Name of context, can be used in logs and such.
bot - Class of the bot that this behaviour is serving. Used by sense and actions for gathering info and manipulation of the bot.
Method Detail

getBot

public AGENT getBot()
Description copied from interface: IContext
Get bot for this context.

Specified by:
getBot in interface IContext<AGENT>
Returns:
bot


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.