org.jscience.philosophy.storytelling
Class Story

java.lang.Object
  extended by org.jscience.philosophy.storytelling.Story

public class Story
extends java.lang.Object

A class representing a continuous and logical flow of events that corresponds to what could be described as the skeleton hidden in a story, or the script. In other words, it is not meant to be as readble as a real story but to store the useful information. Also a class representing an event linked to some others in a causal or timed fashion.


Constructor Summary
Story()
          Creates a new Story object.
 
Method Summary
 void add(Event cause, Event consequence)
          DOCUMENT ME!
 void addEvent(Event event)
          DOCUMENT ME!
 java.util.Set getEvents()
          DOCUMENT ME!
 void remove(Event cause, Event consequence)
          DOCUMENT ME!
 void removeEvent(Event event)
          DOCUMENT ME!
 java.util.Set solve(Event question)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Story

public Story()
Creates a new Story object.

Method Detail

getEvents

public java.util.Set getEvents()
DOCUMENT ME!

Returns:
DOCUMENT ME!

addEvent

public void addEvent(Event event)
DOCUMENT ME!

Parameters:
event - DOCUMENT ME!

removeEvent

public void removeEvent(Event event)
DOCUMENT ME!

Parameters:
event - DOCUMENT ME!

add

public void add(Event cause,
                Event consequence)
DOCUMENT ME!

Parameters:
cause - DOCUMENT ME!
consequence - DOCUMENT ME!

remove

public void remove(Event cause,
                   Event consequence)
DOCUMENT ME!

Parameters:
cause - DOCUMENT ME!
consequence - DOCUMENT ME!

solve

public java.util.Set solve(Event question)
DOCUMENT ME!

Parameters:
question - DOCUMENT ME!
Returns:
DOCUMENT ME!