vs.fabula
Class BasicFabulaBuilder

java.lang.Object
  extended by vs.fabula.BasicFabulaBuilder
All Implemented Interfaces:
IFabulaBuilder, IAgentModule
Direct Known Subclasses:
BroadcastingFabulaBuilder, EpisodicMemory

public class BasicFabulaBuilder
extends java.lang.Object
implements IFabulaBuilder


Field Summary
static java.lang.String defaultGraphName
           
static java.lang.String defaultGraphURI
           
 
Constructor Summary
BasicFabulaBuilder(IRationalAgent owner)
           
 
Method Summary
 void addFabulaCausality(FabulaCausality fc)
           
 void addFabulaElement(FabulaElement fe)
           
 IRationalAgent getAgent()
          To get the Agent
 java.util.Set<FabulaKnowledgeBase> getAllFabulaKnowledgeBase()
           
 void registerFabulaKnowledgeBase(FabulaKnowledgeBase storage)
           
 void saveFabula(java.io.File filename, java.lang.String language)
          Saves the fabula to a file using a certain language
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultGraphURI

public static java.lang.String defaultGraphURI

defaultGraphName

public static java.lang.String defaultGraphName
Constructor Detail

BasicFabulaBuilder

public BasicFabulaBuilder(IRationalAgent owner)
Method Detail

addFabulaCausality

public void addFabulaCausality(FabulaCausality fc)
Specified by:
addFabulaCausality in interface IFabulaBuilder

addFabulaElement

public void addFabulaElement(FabulaElement fe)
Specified by:
addFabulaElement in interface IFabulaBuilder

getAgent

public IRationalAgent getAgent()
Description copied from interface: IAgentModule
To get the Agent

Specified by:
getAgent in interface IAgentModule
Returns:
an Agent that owns this module

getAllFabulaKnowledgeBase

public java.util.Set<FabulaKnowledgeBase> getAllFabulaKnowledgeBase()
Specified by:
getAllFabulaKnowledgeBase in interface IFabulaBuilder

registerFabulaKnowledgeBase

public void registerFabulaKnowledgeBase(FabulaKnowledgeBase storage)
Specified by:
registerFabulaKnowledgeBase in interface IFabulaBuilder

saveFabula

public void saveFabula(java.io.File filename,
                       java.lang.String language)
Description copied from interface: IFabulaBuilder
Saves the fabula to a file using a certain language

Specified by:
saveFabula in interface IFabulaBuilder
Parameters:
filename - the filename of the fabula file
language - the language (see Jena)