vs.fabula
Class FabulaFactory

java.lang.Object
  extended by vs.fabula.FabulaFactory

public class FabulaFactory
extends java.lang.Object

Factory class for the construction of fabula elements. Deals with filling in individual name and OWL class of the fabula elements, so that this happens in a unified and centralized place.

Author:
swartjes

Nested Class Summary
static class FabulaFactory.Outcome
           
 
Constructor Summary
FabulaFactory()
           
 
Method Summary
static StoryAction createAction(java.lang.String prologString, java.lang.String characterURI)
          Create Action fabula element
static StoryEvent createEvent(java.lang.String prologString, java.lang.String characterURI)
          Create Event fabula element
static GoalSchema createGoalSchema(java.lang.String prologString, java.lang.String characterURI)
          Create Goal fabula element
static StoryPerception createPerception(java.lang.String characterURI, jade.util.leap.List contentTriple, jade.util.leap.List contentFabula)
          Create Perception fabula element
static StorySettingElement createSettingElement(java.lang.String characterURI, jade.util.leap.List contentTriple, jade.util.leap.List contentFabula)
          Create setting fabula element
static StoryBelief createStoryBelief(java.lang.String characterURI, jade.util.leap.List contentTriple, jade.util.leap.List contentFabula)
          Create BeliefElement fabula element
static StoryOutcome createStoryOutcome(FabulaFactory.Outcome outcome, java.lang.String characterURI)
          Create Outcome fabula element
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FabulaFactory

public FabulaFactory()
Method Detail

createAction

public static StoryAction createAction(java.lang.String prologString,
                                       java.lang.String characterURI)
Create Action fabula element

Parameters:
prologString - the description of the action in Prolog, i.e. the head of its instantiated schema
characterURI - character of the action
Returns:
a new StoryAction

createEvent

public static StoryEvent createEvent(java.lang.String prologString,
                                     java.lang.String characterURI)
Create Event fabula element

Parameters:
prologString - the description of the action in Prolog, i.e. the head of its instantiated schema
characterURI - character of the event
Returns:
a new StoryAction

createGoalSchema

public static GoalSchema createGoalSchema(java.lang.String prologString,
                                          java.lang.String characterURI)
Create Goal fabula element

Parameters:
prologString - prolog representation of goal schema
characterURI - character of this Goal
Returns:
a new StoryBelief

createPerception

public static StoryPerception createPerception(java.lang.String characterURI,
                                               jade.util.leap.List contentTriple,
                                               jade.util.leap.List contentFabula)
Create Perception fabula element

Parameters:
characterURI - character of the perception
contentTriple - list of triples that are contained in this perception
contentFabula - list of fabula elements contained in this perception
Returns:
a new StoryPerception

createSettingElement

public static StorySettingElement createSettingElement(java.lang.String characterURI,
                                                       jade.util.leap.List contentTriple,
                                                       jade.util.leap.List contentFabula)
Create setting fabula element

Parameters:
characterURI - character of the setting
contentTriple - list of triples that are contained in this setting
contentFabula - list of fabula elements contained in this setting
Returns:
a new StorySettingElement

createStoryBelief

public static StoryBelief createStoryBelief(java.lang.String characterURI,
                                            jade.util.leap.List contentTriple,
                                            jade.util.leap.List contentFabula)
Create BeliefElement fabula element

Parameters:
characterURI - character of the belief
contentTriple - list of triples that are contained in this belief
contentFabula - list of fabula elements contained in this belief
Returns:
a new StoryBelief

createStoryOutcome

public static StoryOutcome createStoryOutcome(FabulaFactory.Outcome outcome,
                                              java.lang.String characterURI)
Create Outcome fabula element

Parameters:
outcome - what kind of outcome to create (success, failure, etc)
characterURI - character of the Outcome
Returns:
a new StoryOutcome