org.infolayer.connection.akel
Class AkelConnection

java.lang.Object
  extended byorg.infolayer.model.Connection
      extended byorg.infolayer.connection.ram.RamConnection
          extended byorg.infolayer.connection.akel.AkelConnection
All Implemented Interfaces:
ModificationListener

public class AkelConnection
extends RamConnection

The akel connection loads the whole instances.xml file to memory. Changes are written to instances.chg. This parser supports the flat instances file format only, not the nested akel format used for agent communication in the comris project.


Constructor Summary
AkelConnection()
           
 
Method Summary
 void close()
           
 void init(UmlClass base, java.lang.String connector)
          Argument: base directory
 void modified(UmlObject umlObject)
          Mark the given instance as modified, so it will be written back to the underlying persistent storage
 void open()
          Opens a connection that has been created before.
 void rewrite()
           
 void writeFully(UmlObject umlObject)
           
 
Methods inherited from class org.infolayer.connection.ram.RamConnection
hex
 
Methods inherited from class org.infolayer.model.Connection
create, createUmlObject, generateId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AkelConnection

public AkelConnection()
Method Detail

init

public void init(UmlClass base,
                 java.lang.String connector)
Argument: base directory

Overrides:
init in class RamConnection

open

public void open()
Description copied from class: Connection
Opens a connection that has been created before. Separation of creation and open allows the holder to store a reference before the connection is actually accessed since the access may result in further indirect access to the connection

Overrides:
open in class RamConnection

rewrite

public void rewrite()

writeFully

public void writeFully(UmlObject umlObject)
                throws java.io.IOException,
                       XmlPullParserException
Throws:
java.io.IOException
XmlPullParserException

modified

public void modified(UmlObject umlObject)
Mark the given instance as modified, so it will be written back to the underlying persistent storage

Specified by:
modified in interface ModificationListener
Overrides:
modified in class RamConnection

close

public void close()
Overrides:
close in class RamConnection