story.dbcore.parameters
Class KleeneParameter

java.lang.Object
  extended by story.dbcore.parameters.Parameter
      extended by story.dbcore.parameters.MatchingParameter
          extended by story.dbcore.parameters.KleeneParameter

public class KleeneParameter
extends MatchingParameter

A parameter requiring at least zero successful matches of an inner ParameterSet on an inner ParameterSet.


Constructor Summary
KleeneParameter(ParameterSet parameters, int minRepetitions, int maxRepetitions)
          Constructor
KleeneParameter(ParameterSet parameters, int minRepetitions, int maxRepetitions, VariableID outgoingReference)
          Constructor with outgoing reference ID which holds the number of successful repetitions.
 
Method Summary
 NodeAddressSet assumedNodes()
          Each concretizing class needs to provide a list of nodes that it assumes exist prior to evaluation, i.e., concrete nodes with which it is constructed.
 int getMaxRepetitions()
           
 int getMinRepetitions()
           
 ParameterSet getParameterSet()
           
 Parameter makeCopy()
          All Parameters must include a self-duplication function.
 ReferenceReqSet referenceRequirements()
          Instantiation of abstract function from superclass.
 VariableType referenceType()
          Instantiation of abstract function from superclass.
 java.lang.StringBuffer specificRender()
          Render as a StringBuffer
 
Methods inherited from class story.dbcore.parameters.MatchingParameter
getReference, makeClone, makeCloneWithNewReference, referenceSet, render
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KleeneParameter

public KleeneParameter(ParameterSet parameters,
                       int minRepetitions,
                       int maxRepetitions)
                throws Scheherexception
Constructor

Throws:
Scheherexception

KleeneParameter

public KleeneParameter(ParameterSet parameters,
                       int minRepetitions,
                       int maxRepetitions,
                       VariableID outgoingReference)
                throws Scheherexception
Constructor with outgoing reference ID which holds the number of successful repetitions.

Throws:
Scheherexception
Method Detail

getParameterSet

public ParameterSet getParameterSet()

getMinRepetitions

public int getMinRepetitions()

getMaxRepetitions

public int getMaxRepetitions()

assumedNodes

public NodeAddressSet assumedNodes()
Description copied from class: Parameter
Each concretizing class needs to provide a list of nodes that it assumes exist prior to evaluation, i.e., concrete nodes with which it is constructed.

Specified by:
assumedNodes in class Parameter

specificRender

public java.lang.StringBuffer specificRender()
                                      throws Scheherexception
Render as a StringBuffer

Specified by:
specificRender in class Parameter
Throws:
Scheherexception

referenceType

public VariableType referenceType()
Instantiation of abstract function from superclass.

Specified by:
referenceType in class MatchingParameter

referenceRequirements

public ReferenceReqSet referenceRequirements()
Instantiation of abstract function from superclass.

Specified by:
referenceRequirements in class Parameter

makeCopy

public Parameter makeCopy()
Description copied from class: Parameter
All Parameters must include a self-duplication function.

Specified by:
makeCopy in class Parameter


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