edu.udo.cs.ie.cowbots.bdi.brf
Class Annotator

Package class diagram package Annotator
java.lang.Object
  extended by edu.udo.cs.ie.cowbots.bdi.brf.Annotator

public class Annotator
extends java.lang.Object

annotator class. the annotator processes all incoming information (percepts or communication), transforms these information into an extended logical program and adds meta information to that program (the result is an information object)


Field Summary
(package private)  int subTime
           
(package private)  int worldtime
           
 
Constructor Summary
Annotator()
          default constructor
 
Method Summary
 InformationObject createIO(Literal l)
          this function creates an information object from a jason literal
 int getAndIncreaseSubtime()
           
 int getWorldTime()
          this function returns the current world time
 void setWorldTime(int wt)
          refreshes the percepted world time
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

worldtime

int worldtime

subTime

int subTime
Constructor Detail

Annotator

public Annotator()
default constructor

Method Detail

getWorldTime

public int getWorldTime()
this function returns the current world time

Returns:
world time

getAndIncreaseSubtime

public int getAndIncreaseSubtime()

createIO

public InformationObject createIO(Literal l)
this function creates an information object from a jason literal

Parameters:
l - jason literal
Returns:
information object containing l

setWorldTime

public void setWorldTime(int wt)
refreshes the percepted world time

Parameters:
wt - world time