zeus.generator.code
Class TaskWriter

java.lang.Object
  extended byzeus.generator.code.Writer
      extended byzeus.generator.code.TaskWriter

public class TaskWriter
extends Writer

TaskWriter is used to emit the code for either a primitive task or a rule based task. Agents are then equiped with this task code. Since 1.3 there is an addition of a service description field, which is used to deploy a service description in the Agentcities (or other) infrastructure.

See Also:
zeus.ontology.services.DAML_S_Service;

Field Summary
static java.lang.String CH
           
 
Fields inherited from class zeus.generator.code.Writer
directory, genmodel, genplan, standard_disclaimer, textArea, UNIX, WINDOWS, ZEUS
 
Constructor Summary
TaskWriter(GenerationPlan genplan, GeneratorModel genmodel, java.lang.String directory, javax.swing.JTextArea textArea)
           
 
Method Summary
 void write()
           
protected  void writePrimitiveTask(java.lang.String name, PrimitiveTask task)
           
protected  void writePrimitiveTask(java.lang.String name, java.lang.String task_external, PrimitiveTask task)
           
protected  void writeReteKB(java.lang.String name, ReteKB task)
           
 
Methods inherited from class zeus.generator.code.Writer
createFile, updateFilename
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CH

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

TaskWriter

public TaskWriter(GenerationPlan genplan,
                  GeneratorModel genmodel,
                  java.lang.String directory,
                  javax.swing.JTextArea textArea)
Method Detail

write

public void write()

writeReteKB

protected void writeReteKB(java.lang.String name,
                           ReteKB task)
                    throws java.io.IOException
Throws:
java.io.IOException

writePrimitiveTask

protected void writePrimitiveTask(java.lang.String name,
                                  PrimitiveTask task)
                           throws java.io.IOException
Throws:
java.io.IOException

writePrimitiveTask

protected void writePrimitiveTask(java.lang.String name,
                                  java.lang.String task_external,
                                  PrimitiveTask task)
                           throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2000-2003 BT Exact Technologies. All Rights Reserved.