nl.tudelft.simulation.yellowpage
Interface YellowPageInterface

All Known Implementing Classes:
YellowPage

public interface YellowPageInterface

A YellowPageInterface, which enables finding of actors based on a registry in which actors can register themselves.

Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl . The source code and binary code of this software is proprietary information of Delft University of Technology.

Version:
$$Revision: 1.2 $$ $$Date: 2005/04/08 10:56:36 $$
Author:
Peter Jacobs

Method Summary
 ActorInterface[] findActor(Category category)
          finds an actor based on the category
 ActorInterface[] findActor(java.lang.String regex)
          finds an actor based on the regex
 ActorInterface[] findActor(java.lang.String regex, Category category)
          finds an actor based on the regex
 boolean register(ActorInterface actor, Category category)
          registers an actor
 

Method Detail

findActor

public ActorInterface[] findActor(java.lang.String regex)
                           throws java.rmi.RemoteException
finds an actor based on the regex

Parameters:
regex - the name of the actor as regular expression
Returns:
ActorInterface[] the result
Throws:
java.rmi.RemoteException - on network failure

findActor

public ActorInterface[] findActor(java.lang.String regex,
                                  Category category)
                           throws java.rmi.RemoteException
finds an actor based on the regex

Parameters:
regex - the name of the actor as regular expression
category - the category for this actor
Returns:
ActorInterface[] the result
Throws:
java.rmi.RemoteException - on network failure

findActor

public ActorInterface[] findActor(Category category)
                           throws java.rmi.RemoteException
finds an actor based on the category

Parameters:
category - the category for this actor
Returns:
ActorInterface[] the result
Throws:
java.rmi.RemoteException - on network failure

register

public boolean register(ActorInterface actor,
                        Category category)
                 throws java.rmi.RemoteException
registers an actor

Parameters:
actor - the actor
category - the category
Returns:
succes
Throws:
java.rmi.RemoteException - on network failure


Copyright © 2004-2005 Delft University of Technology, the Netherlands. All Rights Reserved.