org.universAAL.middleware.managers.aalspace
Class MatchingResultImpl

Package class diagram package MatchingResultImpl
java.lang.Object
  extended by org.universAAL.middleware.managers.aalspace.MatchingResultImpl
All Implemented Interfaces:
MatchingResult

public class MatchingResultImpl
extends Object
implements MatchingResult

The implementation of the MatchingResult interface

Version:
$LastChangedRevision$ ( $LastChangedDate$ )
Author:
Stefano Lenzi

Constructor Summary
MatchingResultImpl(Map<PeerCard,Map<String,Serializable>> data)
           
 
Method Summary
 Map<String,Serializable> getPeerAttribute(PeerCard peer)
           
 PeerCard[] getPeers()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatchingResultImpl

public MatchingResultImpl(Map<PeerCard,Map<String,Serializable>> data)
Method Detail

getPeers

public PeerCard[] getPeers()
Specified by:
getPeers in interface MatchingResult
Returns:
an array of PeerCard representing the peers whom matches the search

getPeerAttribute

public Map<String,Serializable> getPeerAttribute(PeerCard peer)
Specified by:
getPeerAttribute in interface MatchingResult
Parameters:
peer - the that we are asking the attribute for
Returns:
a Map with the current value of the all the attribute that were searched


Copyright © 2014 universAAL Consortium. All Rights Reserved.