story.scheherazade.elements
Class AssignedConditionAddress
java.lang.Object
story.scheherazade.elements.AssignedConditionAddress
- All Implemented Interfaces:
- InternableObject, CloneableObject, RenderableObject, AssignedPredicateAddress
public class AssignedConditionAddress
- extends java.lang.Object
- implements RenderableObject, AssignedPredicateAddress, InternableObject, CloneableObject
An address of an AssignedCondition in a Narrative. Analogous to
the difference between Conditions and ValidConditions,
AssignedConditionAddresses are simply pointers, where
AssignedConditions can only be constructed by the Narrative and
assert that such a Condition is actually assigned at that address.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AssignedConditionAddress
public AssignedConditionAddress(Condition condition,
StateTime assignedState)
throws Scheherexception
- Constructor to use if the condition is in a State
- Throws:
Scheherexception
AssignedConditionAddress
public AssignedConditionAddress(Condition condition,
TransitionTime assignedTransition)
throws Scheherexception
- Constructor to use if the condition begins in a Transition
- Throws:
Scheherexception
render
public java.lang.StringBuffer render()
throws Scheherexception
- Specified by:
render
in interface RenderableObject
- Specified by:
render
in interface AssignedPredicateAddress
- Throws:
Scheherexception
getCondition
public Condition getCondition()
getState
public StateTime getState()
throws Scheherexception
- Throws:
Scheherexception
getTransition
public TransitionTime getTransition()
throws Scheherexception
- Throws:
Scheherexception
intern
public AssignedConditionAddress intern()
throws Scheherexception
- Specified by:
intern
in interface InternableObject
- Throws:
Scheherexception
unintern
public AssignedConditionAddress unintern()
throws Scheherexception
- Specified by:
unintern
in interface InternableObject
- Throws:
Scheherexception
isInterned
public boolean isInterned()
- Specified by:
isInterned
in interface InternableObject
makeClone
public AssignedConditionAddress makeClone()
throws Scheherexception
- Specified by:
makeClone
in interface CloneableObject
- Throws:
Scheherexception
Copyright © 2011 David K. Elson. All Rights Reserved.