story.scheherazade.admin
Class StoryPointType

java.lang.Object
  extended by story.scheherazade.admin.StoryPointType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable, GenericType, RenderableObject

public class StoryPointType
extends java.lang.Object
implements GenericType, java.lang.Comparable, java.io.Serializable, RenderableObject

Manually implemented enum for types. Allows classes to specify types to one another by passing one of the fields of this class rather than a string. No public constructor.

Based (loosely) on http://xoot.org/index.php?name=Java+enum+classes

See Also:
Serialized Form

Field Summary
static StoryPointType AssignAction
           
static StoryPointType AssignCondition
           
static StoryPointType AssignInterpNode
           
static StoryPointType AssignModifier
           
static StoryPointType AttachInterpPredicate
           
static StoryPointType CompareNarratives
           
static StoryPointType DeclareAction
           
static StoryPointType DeclareAntonymy
           
static StoryPointType DeclareCondition
           
static StoryPointType DeclareModifier
           
static StoryPointType DeclareMorphologicalRelation
           
static StoryPointType DeclareNounType
           
static StoryPointType DefineNoun
           
static StoryPointType FindNounDefinition
           
static StoryPointType GenerateRandomNarrative
           
static StoryPointType GetActionParameters
           
static StoryPointType GetActionsBeginningAt
           
static StoryPointType GetActionsEndingAt
           
static StoryPointType GetActionsInTransition
           
static StoryPointType GetActivationFrame
           
static StoryPointType GetAllActions
           
static StoryPointType GetAllConditions
           
static StoryPointType GetAllInterpNodes
           
static StoryPointType GetAllTimelines
           
static StoryPointType GetAssignedActionFromNode
           
static StoryPointType GetAssignedConditionFromNode
           
static StoryPointType GetAssignedModifierFromNode
           
static StoryPointType GetAssignedPersistentCondition
           
static StoryPointType GetAssignedPredicateFromAddress
           
static StoryPointType GetAssignedPredicateFromNode
           
static StoryPointType GetAttachmentPoint
           
static StoryPointType GetChainsOfInterpNode
           
static StoryPointType GetConditionBeginsAction
           
static StoryPointType GetConditionParameters
           
static StoryPointType GetConditionsInState
           
static StoryPointType GetConditionsOfNounInState
           
static StoryPointType GetDeclaredActions
           
static StoryPointType GetDeclaredConditions
           
static StoryPointType GetDeclaredModifiers
           
static StoryPointType GetDeclaredNounTypes
           
static StoryPointType GetDefinedNouns
           
static StoryPointType GetInterpChain
           
static StoryPointType GetInterpLineage
           
static StoryPointType GetInvokedStatesInTimeline
           
static StoryPointType GetLinkedInterpElements
           
static StoryPointType GetModifiablePredicates
           
static StoryPointType GetModifierParameters
           
static StoryPointType GetModifiersOfPredicate
           
static StoryPointType GetNounParameters
           
static StoryPointType InitializeNarrative
           
static StoryPointType IntersectPairwise
           
static StoryPointType LaunchDebugger
           
static StoryPointType LinkInterpElements
           
static StoryPointType MakeValidAction
           
static StoryPointType MakeValidCondition
           
static StoryPointType MakeValidModifier
           
static StoryPointType MakeValidNoun
           
static StoryPointType NewTimeline
           
static StoryPointType NormalizeAssignedPredicate
           
static StoryPointType Query
           
static StoryPointType ReassignAction
           
static StoryPointType ReassignTransition
           
static StoryPointType ReassignTransitionsAroundState
           
static StoryPointType ReattachInterpElement
           
static StoryPointType RedefineAction
           
static StoryPointType RedefineCondition
           
static StoryPointType RedefineModifier
           
static StoryPointType RedefineNoun
           
static StoryPointType Redo
           
static StoryPointType RedoTo
           
static StoryPointType RemoveAssignedAction
           
static StoryPointType RemoveAssignedCondition
           
static StoryPointType RemoveAssignedModifier
           
static StoryPointType RemoveInterpNode
           
static StoryPointType Revert
           
static StoryPointType SetAttachmentPoint
           
static StoryPointType SetConditionality
           
static StoryPointType SetInterpPosition
           
static StoryPointType SetNoInterpretation
           
static StoryPointType SetSourceTextSpan
           
static StoryPointType SwapActionCreationTimes
           
static StoryPointType SwitchToNarrative
           
static StoryPointType UndefineNoun
           
static StoryPointType Undo
           
static StoryPointType UndoTest
           
static StoryPointType UndoTo
           
static StoryPointType UnlinkInterpElements
           
static StoryPointType ValidateInterp
           
 
Method Summary
static java.lang.String capitalize(java.lang.String in)
           
 int compareTo(java.lang.Object other)
           
 boolean equals(java.lang.Object other)
          Tests if one instance is the same as some other.
static StoryPointType get(int number)
          Return the corresponding StoryPointType for the given Unique ID (see getUniqueID).
static StoryPointType get(java.lang.String string)
          Static version of get() that gets around the Java restriction on static types in interfaces.
static ImmutableHashSet getAllTypes()
          Return a HashSet of every item in the enumeration.
 ImmutableHashSet getAllTypesNonStatically()
          Return a HashSet of every item in the enumeration.
 GenericType getAsGeneric(java.lang.String string)
          Return the corresponding StoryPointType for the given string as a GenericType object.
 int getUniqueID()
          Get a unique numerial ID for this type that goes from 0 to (numMembers() - 1).
static int numMembers()
          Get the number of members of this type.
 java.lang.StringBuffer render()
          Return the string equivalent of the StoryPointType with the type type, formatted with the dot operator that the command interpreter understands.
 java.lang.String toString()
          Return the string equivalent of the StoryPointType.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AssignAction

public static final StoryPointType AssignAction

AssignCondition

public static final StoryPointType AssignCondition

AssignModifier

public static final StoryPointType AssignModifier

AssignInterpNode

public static final StoryPointType AssignInterpNode

AttachInterpPredicate

public static final StoryPointType AttachInterpPredicate

CompareNarratives

public static final StoryPointType CompareNarratives

DeclareAction

public static final StoryPointType DeclareAction

DeclareAntonymy

public static final StoryPointType DeclareAntonymy

DeclareCondition

public static final StoryPointType DeclareCondition

DeclareModifier

public static final StoryPointType DeclareModifier

DeclareMorphologicalRelation

public static final StoryPointType DeclareMorphologicalRelation

DeclareNounType

public static final StoryPointType DeclareNounType

DefineNoun

public static final StoryPointType DefineNoun

FindNounDefinition

public static final StoryPointType FindNounDefinition

GenerateRandomNarrative

public static final StoryPointType GenerateRandomNarrative

GetActionParameters

public static final StoryPointType GetActionParameters

GetActionsBeginningAt

public static final StoryPointType GetActionsBeginningAt

GetActionsEndingAt

public static final StoryPointType GetActionsEndingAt

GetActionsInTransition

public static final StoryPointType GetActionsInTransition

GetActivationFrame

public static final StoryPointType GetActivationFrame

GetAllActions

public static final StoryPointType GetAllActions

GetAllConditions

public static final StoryPointType GetAllConditions

GetAllInterpNodes

public static final StoryPointType GetAllInterpNodes

GetAllTimelines

public static final StoryPointType GetAllTimelines

GetAssignedActionFromNode

public static final StoryPointType GetAssignedActionFromNode

GetAssignedConditionFromNode

public static final StoryPointType GetAssignedConditionFromNode

GetAssignedModifierFromNode

public static final StoryPointType GetAssignedModifierFromNode

GetAssignedPredicateFromNode

public static final StoryPointType GetAssignedPredicateFromNode

GetAssignedPredicateFromAddress

public static final StoryPointType GetAssignedPredicateFromAddress

GetAssignedPersistentCondition

public static final StoryPointType GetAssignedPersistentCondition

GetChainsOfInterpNode

public static final StoryPointType GetChainsOfInterpNode

GetConditionBeginsAction

public static final StoryPointType GetConditionBeginsAction

GetConditionParameters

public static final StoryPointType GetConditionParameters

GetConditionsInState

public static final StoryPointType GetConditionsInState

GetConditionsOfNounInState

public static final StoryPointType GetConditionsOfNounInState

GetDeclaredActions

public static final StoryPointType GetDeclaredActions

GetDeclaredConditions

public static final StoryPointType GetDeclaredConditions

GetDeclaredModifiers

public static final StoryPointType GetDeclaredModifiers

GetDefinedNouns

public static final StoryPointType GetDefinedNouns

GetDeclaredNounTypes

public static final StoryPointType GetDeclaredNounTypes

GetInterpChain

public static final StoryPointType GetInterpChain

GetInterpLineage

public static final StoryPointType GetInterpLineage

GetLinkedInterpElements

public static final StoryPointType GetLinkedInterpElements

GetModifiersOfPredicate

public static final StoryPointType GetModifiersOfPredicate

GetModifierParameters

public static final StoryPointType GetModifierParameters

GetModifiablePredicates

public static final StoryPointType GetModifiablePredicates

GetNounParameters

public static final StoryPointType GetNounParameters

GetInvokedStatesInTimeline

public static final StoryPointType GetInvokedStatesInTimeline

InitializeNarrative

public static final StoryPointType InitializeNarrative

IntersectPairwise

public static final StoryPointType IntersectPairwise

LaunchDebugger

public static final StoryPointType LaunchDebugger

LinkInterpElements

public static final StoryPointType LinkInterpElements

MakeValidAction

public static final StoryPointType MakeValidAction

MakeValidCondition

public static final StoryPointType MakeValidCondition

MakeValidModifier

public static final StoryPointType MakeValidModifier

MakeValidNoun

public static final StoryPointType MakeValidNoun

NewTimeline

public static final StoryPointType NewTimeline

NormalizeAssignedPredicate

public static final StoryPointType NormalizeAssignedPredicate

Query

public static final StoryPointType Query

ReassignAction

public static final StoryPointType ReassignAction

ReassignTransition

public static final StoryPointType ReassignTransition

ReassignTransitionsAroundState

public static final StoryPointType ReassignTransitionsAroundState

ReattachInterpElement

public static final StoryPointType ReattachInterpElement

RedefineAction

public static final StoryPointType RedefineAction

RedefineCondition

public static final StoryPointType RedefineCondition

RedefineModifier

public static final StoryPointType RedefineModifier

RedefineNoun

public static final StoryPointType RedefineNoun

Redo

public static final StoryPointType Redo

RedoTo

public static final StoryPointType RedoTo

RemoveAssignedAction

public static final StoryPointType RemoveAssignedAction

RemoveAssignedCondition

public static final StoryPointType RemoveAssignedCondition

RemoveAssignedModifier

public static final StoryPointType RemoveAssignedModifier

RemoveInterpNode

public static final StoryPointType RemoveInterpNode

GetAttachmentPoint

public static final StoryPointType GetAttachmentPoint

SetAttachmentPoint

public static final StoryPointType SetAttachmentPoint

SetNoInterpretation

public static final StoryPointType SetNoInterpretation

SetSourceTextSpan

public static final StoryPointType SetSourceTextSpan

SetConditionality

public static final StoryPointType SetConditionality

SwapActionCreationTimes

public static final StoryPointType SwapActionCreationTimes

Revert

public static final StoryPointType Revert

SetInterpPosition

public static final StoryPointType SetInterpPosition

SwitchToNarrative

public static final StoryPointType SwitchToNarrative

UndefineNoun

public static final StoryPointType UndefineNoun

Undo

public static final StoryPointType Undo

UndoTest

public static final StoryPointType UndoTest

UndoTo

public static final StoryPointType UndoTo

UnlinkInterpElements

public static final StoryPointType UnlinkInterpElements

ValidateInterp

public static final StoryPointType ValidateInterp
Method Detail

get

public static StoryPointType get(int number)
Return the corresponding StoryPointType for the given Unique ID (see getUniqueID).

Parameters:
number - Number index.

toString

public java.lang.String toString()
Return the string equivalent of the StoryPointType.

Specified by:
toString in interface GenericType
Overrides:
toString in class java.lang.Object

render

public java.lang.StringBuffer render()
Return the string equivalent of the StoryPointType with the type type, formatted with the dot operator that the command interpreter understands.

Specified by:
render in interface GenericType
Specified by:
render in interface RenderableObject

equals

public boolean equals(java.lang.Object other)
Tests if one instance is the same as some other.

Specified by:
equals in interface GenericType
Overrides:
equals in class java.lang.Object
Parameters:
other - Other StoryPointType to compare to.

getAllTypes

public static ImmutableHashSet getAllTypes()
Return a HashSet of every item in the enumeration.


getAllTypesNonStatically

public ImmutableHashSet getAllTypesNonStatically()
Return a HashSet of every item in the enumeration.

Specified by:
getAllTypesNonStatically in interface GenericType

getAsGeneric

public GenericType getAsGeneric(java.lang.String string)
Return the corresponding StoryPointType for the given string as a GenericType object.

Specified by:
getAsGeneric in interface GenericType

get

public static StoryPointType get(java.lang.String string)
Static version of get() that gets around the Java restriction on static types in interfaces.


compareTo

public int compareTo(java.lang.Object other)
              throws java.lang.ClassCastException
Specified by:
compareTo in interface java.lang.Comparable
Throws:
java.lang.ClassCastException

getUniqueID

public int getUniqueID()
Get a unique numerial ID for this type that goes from 0 to (numMembers() - 1).


numMembers

public static int numMembers()
Get the number of members of this type.


capitalize

public static java.lang.String capitalize(java.lang.String in)


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