brahms.communication
Class CommunicativeActBeliefOrganizer

java.lang.Object
  extended by brahms.communication.CommunicativeActBeliefOrganizer
All Implemented Interfaces:
IStatementOrganizer

public class CommunicativeActBeliefOrganizer
extends java.lang.Object
implements IStatementOrganizer

The CommunicativeActBeliefOrganizer organizes the beliefs of a communicative act such that the belief about 'envelope("sender")' is the last belief in the list.

Version:
$Revision: 1.1 $ $Date: 2007/10/10 14:02:58 $ $Author: rvhoof $
Author:
Mike Scott

Field Summary
static IStatementOrganizer SINGLETON
          Singleton for CommunicativeActBeliefOrganizer
 
Method Summary
 IStatement[] organize(java.util.Enumeration statements)
          Organizes the specified enumeration of statements and returns the organized set of statements.
 IStatement[] organize(IStatement[] statements)
          Organizes the specified array of statements and returns the organized set of statements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SINGLETON

public static final IStatementOrganizer SINGLETON
Singleton for CommunicativeActBeliefOrganizer

Method Detail

organize

public IStatement[] organize(java.util.Enumeration statements)
                      throws ExternalException
Organizes the specified enumeration of statements and returns the organized set of statements.

Specified by:
organize in interface IStatementOrganizer
Parameters:
statements - the Enumeration of IStatement to be organized
Returns:
IStatement[] the organized statements
Throws:
ExternalException - if an internal error occurs

organize

public IStatement[] organize(IStatement[] statements)
                      throws ExternalException
Organizes the specified array of statements and returns the organized set of statements.

Specified by:
organize in interface IStatementOrganizer
Parameters:
statements - the IStatement array to be organized
Returns:
IStatement[] the organized statements (new array)
Throws:
ExternalException - if an internal error occurs


Copyright © 1997-2012 All Rights Reserved.