ru.oogis.dro
Class DrlEmitter
java.lang.Object
ru.oogis.dro.DrlEmitter
- All Implemented Interfaces:
- java.lang.Runnable
- Direct Known Subclasses:
- CreatedEmitter
public class DrlEmitter
- extends java.lang.Object
- implements java.lang.Runnable
Constructor Summary |
DrlEmitter(edu.stanford.smi.protege.model.Instance packInst)
|
Method Summary |
void |
addPackageToBuilder(org.drools.compiler.PackageBuilder builder)
|
void |
emitPrologue(java.io.Writer wr)
|
void |
emitRule(edu.stanford.smi.protege.model.Instance rule,
java.io.Writer wr)
|
void |
emitRules(java.lang.String path)
|
void |
emitRules(java.io.Writer wr)
|
static void |
main(java.lang.String[] args)
|
void |
run()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DrlEmitter
public DrlEmitter(edu.stanford.smi.protege.model.Instance packInst)
emitPrologue
public void emitPrologue(java.io.Writer wr)
throws java.io.IOException
- Throws:
java.io.IOException
emitRules
public void emitRules(java.io.Writer wr)
throws java.io.IOException
- Throws:
java.io.IOException
emitRules
public void emitRules(java.lang.String path)
throws java.io.IOException
- Throws:
java.io.IOException
emitRule
public void emitRule(edu.stanford.smi.protege.model.Instance rule,
java.io.Writer wr)
throws java.io.IOException
- Throws:
java.io.IOException
addPackageToBuilder
public void addPackageToBuilder(org.drools.compiler.PackageBuilder builder)
throws java.lang.Exception
- Throws:
java.lang.Exception
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception