story.scheherazade.misc
Class Render

java.lang.Object
  extended by story.scheherazade.misc.Render

public class Render
extends java.lang.Object

Set of static functions for rendering various components of the semantic network to a StringBuffer.


Constructor Summary
Render()
           
 
Method Summary
static java.lang.StringBuffer renderActionInst(DBCAccessor dbca, NodeAddress actionInst, java.util.HashSet rendered)
          Render an instance of an Action within a Transition.
static java.lang.StringBuffer renderCharacterInst(DBCAccessor dbca, NodeAddress characterInst, java.util.HashSet rendered)
          Render an instance of a Character within a State.
static java.lang.StringBuffer renderConditionDeclaration(DBCAccessor dbca, NodeAddress condition, java.util.HashSet rendered)
          Render a Condition node.
static java.lang.StringBuffer renderNarrative(DBCAccessor dbca, NodeAddress narrativeNode)
          Render the entire narrative network to a string buffer.
static java.lang.StringBuffer renderProp(DBCAccessor dbca, NodeAddress prop, java.util.HashSet rendered)
          Render a Prop.
static java.lang.StringBuffer renderSetting(DBCAccessor dbca, NodeAddress settingNode, java.util.HashSet rendered)
          Render a setting node of the narrative.
static java.lang.StringBuffer renderState(DBCAccessor dbca, NodeAddress stateNode, java.util.HashSet rendered)
          Render a State of the narrative.
static java.lang.StringBuffer renderTimeline(DBCAccessor dbca, NodeAddress timelineNode, java.util.HashSet rendered, boolean abbreviated)
          Render a Timeline node.
static java.lang.StringBuffer renderTransition(DBCAccessor dbca, NodeAddress transitionNode, java.util.HashSet rendered)
          Render a Transition.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Render

public Render()
Method Detail

renderNarrative

public static java.lang.StringBuffer renderNarrative(DBCAccessor dbca,
                                                     NodeAddress narrativeNode)
                                              throws Scheherexception
Render the entire narrative network to a string buffer.

Throws:
Scheherexception

renderState

public static java.lang.StringBuffer renderState(DBCAccessor dbca,
                                                 NodeAddress stateNode,
                                                 java.util.HashSet rendered)
                                          throws Scheherexception
Render a State of the narrative.

Throws:
Scheherexception

renderTransition

public static java.lang.StringBuffer renderTransition(DBCAccessor dbca,
                                                      NodeAddress transitionNode,
                                                      java.util.HashSet rendered)
                                               throws Scheherexception
Render a Transition.

Throws:
Scheherexception

renderActionInst

public static java.lang.StringBuffer renderActionInst(DBCAccessor dbca,
                                                      NodeAddress actionInst,
                                                      java.util.HashSet rendered)
                                               throws Scheherexception
Render an instance of an Action within a Transition.

Throws:
Scheherexception

renderCharacterInst

public static java.lang.StringBuffer renderCharacterInst(DBCAccessor dbca,
                                                         NodeAddress characterInst,
                                                         java.util.HashSet rendered)
                                                  throws Scheherexception
Render an instance of a Character within a State.

Throws:
Scheherexception

renderTimeline

public static java.lang.StringBuffer renderTimeline(DBCAccessor dbca,
                                                    NodeAddress timelineNode,
                                                    java.util.HashSet rendered,
                                                    boolean abbreviated)
                                             throws Scheherexception
Render a Timeline node.

Throws:
Scheherexception

renderSetting

public static java.lang.StringBuffer renderSetting(DBCAccessor dbca,
                                                   NodeAddress settingNode,
                                                   java.util.HashSet rendered)
                                            throws Scheherexception
Render a setting node of the narrative.

Throws:
Scheherexception

renderConditionDeclaration

public static java.lang.StringBuffer renderConditionDeclaration(DBCAccessor dbca,
                                                                NodeAddress condition,
                                                                java.util.HashSet rendered)
                                                         throws Scheherexception
Render a Condition node.

Throws:
Scheherexception

renderProp

public static java.lang.StringBuffer renderProp(DBCAccessor dbca,
                                                NodeAddress prop,
                                                java.util.HashSet rendered)
                                         throws Scheherexception
Render a Prop.

Throws:
Scheherexception


Copyright © 2011 David K. Elson. All Rights Reserved.