ru.oogis.dro
Class DrlParser

java.lang.Object
  extended by ru.oogis.dro.DrlParser

public class DrlParser
extends java.lang.Object


Field Summary
static java.lang.String ACTIVATION_GROUP
           
static java.lang.String AGENDA_GROUP
           
static java.lang.String AUTO_FOCUS
           
static java.lang.String DATE_EFFECTIVE
           
static java.lang.String DATE_EXPIRES
           
static java.lang.String DIALECT
           
static java.lang.String DURATION
           
static java.lang.String END
           
static java.lang.String EXPANDER
           
static java.lang.String FUNCTION
           
static java.lang.String GLOBAL
           
static java.lang.String IMPORT
           
static java.lang.String NO_LOOP
           
static java.lang.String PACKAGE
           
static java.lang.String RULE
           
static java.lang.String SALIENCE
           
static java.lang.String THEN
           
static java.lang.String WHEN
           
 
Constructor Summary
DrlParser(edu.stanford.smi.protege.model.KnowledgeBase kb)
           
DrlParser(edu.stanford.smi.protege.model.KnowledgeBase kb, edu.stanford.smi.protege.model.Instance packInst)
           
 
Method Summary
 void addRuleInstance(ru.oogis.dro.DrlParser.Rule rule)
           
 void createExpander(java.lang.String lex)
           
 void createFunction(ru.oogis.dro.DrlParser.LexReader lr)
           
 void createGlobal(java.lang.String clazz, java.lang.String identifier)
           
 void createImport(java.lang.String lex)
           
 void createPackage(java.lang.String lex)
           
 void createRule(ru.oogis.dro.DrlParser.LexReader lr)
           
 java.util.Collection<java.lang.String> getErrors()
           
 edu.stanford.smi.protege.model.Instance getPackInst()
           
static void main(java.lang.String[] args)
           
 void parse(java.io.Reader reader)
           
 void parse(java.lang.String path)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIALECT

public static final java.lang.String DIALECT
See Also:
Constant Field Values

DATE_EFFECTIVE

public static final java.lang.String DATE_EFFECTIVE
See Also:
Constant Field Values

DATE_EXPIRES

public static final java.lang.String DATE_EXPIRES
See Also:
Constant Field Values

ACTIVATION_GROUP

public static final java.lang.String ACTIVATION_GROUP
See Also:
Constant Field Values

AGENDA_GROUP

public static final java.lang.String AGENDA_GROUP
See Also:
Constant Field Values

AUTO_FOCUS

public static final java.lang.String AUTO_FOCUS
See Also:
Constant Field Values

DURATION

public static final java.lang.String DURATION
See Also:
Constant Field Values

END

public static final java.lang.String END
See Also:
Constant Field Values

EXPANDER

public static final java.lang.String EXPANDER
See Also:
Constant Field Values

FUNCTION

public static final java.lang.String FUNCTION
See Also:
Constant Field Values

GLOBAL

public static final java.lang.String GLOBAL
See Also:
Constant Field Values

IMPORT

public static final java.lang.String IMPORT
See Also:
Constant Field Values

NO_LOOP

public static final java.lang.String NO_LOOP
See Also:
Constant Field Values

PACKAGE

public static final java.lang.String PACKAGE
See Also:
Constant Field Values

RULE

public static final java.lang.String RULE
See Also:
Constant Field Values

SALIENCE

public static final java.lang.String SALIENCE
See Also:
Constant Field Values

THEN

public static final java.lang.String THEN
See Also:
Constant Field Values

WHEN

public static final java.lang.String WHEN
See Also:
Constant Field Values
Constructor Detail

DrlParser

public DrlParser(edu.stanford.smi.protege.model.KnowledgeBase kb)

DrlParser

public DrlParser(edu.stanford.smi.protege.model.KnowledgeBase kb,
                 edu.stanford.smi.protege.model.Instance packInst)
Method Detail

getPackInst

public edu.stanford.smi.protege.model.Instance getPackInst()

parse

public void parse(java.io.Reader reader)
           throws java.lang.Exception
Throws:
java.lang.Exception

parse

public void parse(java.lang.String path)
           throws java.lang.Exception
Throws:
java.lang.Exception

createRule

public void createRule(ru.oogis.dro.DrlParser.LexReader lr)
                throws java.io.IOException
Throws:
java.io.IOException

createFunction

public void createFunction(ru.oogis.dro.DrlParser.LexReader lr)
                    throws java.io.IOException
Throws:
java.io.IOException

createPackage

public void createPackage(java.lang.String lex)
                   throws java.io.IOException
Throws:
java.io.IOException

createExpander

public void createExpander(java.lang.String lex)
                    throws java.io.IOException
Throws:
java.io.IOException

createImport

public void createImport(java.lang.String lex)
                  throws java.io.IOException
Throws:
java.io.IOException

createGlobal

public void createGlobal(java.lang.String clazz,
                         java.lang.String identifier)
                  throws java.io.IOException
Throws:
java.io.IOException

addRuleInstance

public void addRuleInstance(ru.oogis.dro.DrlParser.Rule rule)

getErrors

public java.util.Collection<java.lang.String> getErrors()

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception