gov.nasa.arc.brahms.vm.rt
Class CommunicativeActStatementSetOrganizer

java.lang.Object
  extended by gov.nasa.arc.brahms.vm.rt.CommunicativeActStatementSetOrganizer
All Implemented Interfaces:
IStatementSetOrganizer

public class CommunicativeActStatementSetOrganizer
extends java.lang.Object
implements IStatementSetOrganizer

A CommunicativeActStatementSetOrganizer is a statement organizer that organizes the list of statements for a CommunicativeAct in such an order that the envelope("sender") belief is always last in the list.

Version:
$Revision: 1.1 $ $Date: 2007/10/10 14:04:19 $ $Author: rvhoof $
Author:
Ron van Hoof

Field Summary
static IStatementSetOrganizer SINGLETON
          Singleton for CommunicativeActStatementSetOrganizer
 
Method Summary
 VMStatementCtx[] organize(java.util.Enumeration statements)
          Organizes the specified enumeration of statements and returns the organized set of statements.
 VMStatementCtx[] organize(VMStatementCtx[] 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 IStatementSetOrganizer SINGLETON
Singleton for CommunicativeActStatementSetOrganizer

Method Detail

organize

public VMStatementCtx[] organize(java.util.Enumeration statements)
                          throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
Organizes the specified enumeration of statements and returns the organized set of statements.

Specified by:
organize in interface IStatementSetOrganizer
Parameters:
statements - the Enumeration of IStatement to be organized
Returns:
IStatement[] the organized statements
Throws:
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if an internal error occurs

organize

public VMStatementCtx[] organize(VMStatementCtx[] statements)
                          throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
Organizes the specified array of statements and returns the organized set of statements.

Specified by:
organize in interface IStatementSetOrganizer
Parameters:
statements - the IStatement array to be organized
Returns:
IStatement[] the organized statements
Throws:
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if an internal error occurs


Copyright © 1997-2012 All Rights Reserved.