From 900631ca79cf283eff42266ea6ebe8b9f4bd0cd1 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Mon, 30 Sep 2013 09:06:51 +0200 Subject: Javadoc on IDLs --- src/main/idl/CommonExceptions.idl | 19 +-- src/main/idl/Entity.idl | 174 +++++++++++---------- .../java/com/c2kernel/entity/TraceableEntity.java | 39 +++-- 3 files changed, 127 insertions(+), 105 deletions(-) (limited to 'src') diff --git a/src/main/idl/CommonExceptions.idl b/src/main/idl/CommonExceptions.idl index 9301ad0..fd1122a 100644 --- a/src/main/idl/CommonExceptions.idl +++ b/src/main/idl/CommonExceptions.idl @@ -14,7 +14,8 @@ module common { /************************************************************************** - * Thrown by the different Factories + * Thrown when the directory couldn't be modified during Entity creation, or + * Role management **************************************************************************/ exception CannotManageException { @@ -24,8 +25,9 @@ module common /************************************************************************** - * The requested Transition in the State Diagram of the Step - * cannot be performed. + * The requested transition is not currently available, or does not exist. + * Most commonly occurs when the Activity is in a different state than the + * caller has assumed. **************************************************************************/ exception InvalidTransitionException { @@ -34,9 +36,7 @@ module common /************************************************************************** - * The action for the requested Transition has got invalid data - * Also used in other contexts if the provided data is not valid - * (eg. index out of bounds) + * Either the supplied data, or the relevant description, was invalid. **************************************************************************/ exception InvalidDataException { @@ -45,12 +45,7 @@ module common /************************************************************************** - * The Agent has no rigths to request the Transition. - * - *

 Two major reasons:
-    * 1. The role of the Agent and the Step specifictaion does not much.
-    * 2. The Step is already allocated to an Agent.
-    *
+ * The given agent is not permitted to perform the requested action. **************************************************************************/ exception AccessRightsException { diff --git a/src/main/idl/Entity.idl b/src/main/idl/Entity.idl index aa607c7..f94bdf4 100644 --- a/src/main/idl/Entity.idl +++ b/src/main/idl/Entity.idl @@ -15,40 +15,40 @@ module entity { - /************************************************************************** - * ManageableEntity is an uniquely identifiable CORBA object. - * - * - It is persistent or not. This is relevant when the timelife of it - * is very short and/or there is no need for recovery from crash. - **************************************************************************/ + /** + * ManageableEntity is the CORBA super-interface for Entities. It is uniquely + * identifiable by its system key, and contains XML fragments arranged + * in a tree structure. + **/ + abstract interface ManageableEntity { /** - *

System generated unique key of the Entity. It is unique - * in the context defined by the domain expert which is to - * define the root NamingContext in the Naming Service - * (ie. return of orb.resolve_initial_references("NameService") ). - *

In principle it is equivalent with an OID of an object in a - * OODBMS or with an IOR defined on CORBA. + * System generated unique key of the Entity. It is unique in the domain tree of the local centre in which is is contained. **/ unsigned long getSystemKey(); /** - * The description for operation getData. - * - * @param xpath A not so dummy argument. - * - LifeCycle - * - Collection - * - History - * - Properties - * - JobList - * - Capabilities - * - * @return The result string in xml format. - * - * @exception ObjectNotFoundException 'what' was not found. + * Returns a chunk of XML which may be a serialized C2KLocalObject, or in the case of Outcomes is merely a fragment of XML. + * + * @param path - All Entity data is arranged in a tree structure which uniquely identifies that object within the Entity it is contained, according to the following scheme: + *