cz.cuni.amis.pogamut.sposh.context
Class Context<AGENT>
java.lang.Object
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
|
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 |
name
protected final String name
bot
protected final AGENT bot
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.
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.