org.universAAL.middleware.brokers.message.control
Class ControlMessage

Package class diagram package ControlMessage
java.lang.Object
  extended by org.universAAL.middleware.brokers.message.control.ControlMessage
All Implemented Interfaces:
BrokerMessage

public class ControlMessage
extends Object
implements BrokerMessage

Control message

Version:
$LastChangedRevision$ ( $LastChangedDate$ )
Author:
Michele Girolami, Francesco Furfari, Stefano Lenzi

Nested Class Summary
static class ControlMessage.ControlMessageFields
           
static class ControlMessage.ControlMessageType
           
 
Nested classes/interfaces inherited from interface org.universAAL.middleware.brokers.message.BrokerMessage
BrokerMessage.BrokerMessageTypes
 
Constructor Summary
ControlMessage(AALSpaceDescriptor space, ControlMessage.ControlMessageType type)
           
ControlMessage(AALSpaceDescriptor space, ControlMessage.ControlMessageType type, String id)
           
ControlMessage(AALSpaceDescriptor space, List<String> attributes)
           
ControlMessage(AALSpaceDescriptor space, Map<String,Serializable> filter)
           
ControlMessage(AALSpaceDescriptor space, String id, HashMap<String,Serializable> map)
           
ControlMessage(AALSpaceDescriptor space, String id, HashMap<String,Serializable> map, boolean match)
           
 
Method Summary
 Map<String,Serializable> getAttributeFilter()
           
 List<String> getAttributes()
           
 Map<String,Serializable> getAttributeValues()
           
 boolean getMatchFilter()
           
 ControlMessage.ControlMessageType getMessageType()
           
 BrokerMessage.BrokerMessageTypes getMType()
           
 PeerCard[] getReceivers()
          To implement
 String getTransactionId()
           
 String toString()
           
static ControlMessage unmarshall(String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ControlMessage

public ControlMessage(AALSpaceDescriptor space,
                      List<String> attributes)

ControlMessage

public ControlMessage(AALSpaceDescriptor space,
                      ControlMessage.ControlMessageType type)

ControlMessage

public ControlMessage(AALSpaceDescriptor space,
                      Map<String,Serializable> filter)

ControlMessage

public ControlMessage(AALSpaceDescriptor space,
                      String id,
                      HashMap<String,Serializable> map)

ControlMessage

public ControlMessage(AALSpaceDescriptor space,
                      String id,
                      HashMap<String,Serializable> map,
                      boolean match)

ControlMessage

public ControlMessage(AALSpaceDescriptor space,
                      ControlMessage.ControlMessageType type,
                      String id)
Method Detail

toString

public String toString()
Specified by:
toString in interface BrokerMessage
Overrides:
toString in class Object

getMatchFilter

public boolean getMatchFilter()

getMessageType

public ControlMessage.ControlMessageType getMessageType()

unmarshall

public static ControlMessage unmarshall(String message)
                                 throws Exception
Throws:
Exception

getTransactionId

public String getTransactionId()

getAttributeFilter

public Map<String,Serializable> getAttributeFilter()

getAttributeValues

public Map<String,Serializable> getAttributeValues()

getMType

public BrokerMessage.BrokerMessageTypes getMType()
Specified by:
getMType in interface BrokerMessage

getAttributes

public List<String> getAttributes()

getReceivers

public PeerCard[] getReceivers()
To implement

Specified by:
getReceivers in interface BrokerMessage


Copyright © 2014 universAAL Consortium. All Rights Reserved.