Skip to content
Snippets Groups Projects
Commit 746f84dc authored by Hendrik Buschmeier's avatar Hendrik Buschmeier
Browse files

Added constructor that initialises category to LocalIU.

parent 85a2c268
No related branches found
No related tags found
No related merge requests found
...@@ -38,6 +38,15 @@ public class LocalIU extends AbstractIU ...@@ -38,6 +38,15 @@ public class LocalIU extends AbstractIU
payload = new Payload(this); payload = new Payload(this);
} }
public LocalIU(String category)
{
super(UUID.randomUUID().toString());
this.category = category;
revision = 1;
payload = new Payload(this);
}
// def _set_buffer(self, buffer): // def _set_buffer(self, buffer):
// if self._buffer is not None: // if self._buffer is not None:
// raise Exception('The IU is already in a buffer, cannot move it.') // raise Exception('The IU is already in a buffer, cannot move it.')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment