/*********************************************************************/
/* */
/* AgentService Framework */
/* www.agentservice.it */
/* */
/* Copyright (C) 2007 l.i.d.o. - DIST, University of Genoa, Italy */
/* GNU Lesser General Public License */
/* */
/* This library is free software; you can redistribute it and/or */
/* modify it under the terms of the GNU Lesser General Public */
/* License as published by the Free Software Foundation, */
/* version 2.1 of the License. */
/* */
/* This library is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU */
/* Lesser General Public License for more details. */
/* */
/* You should have received a copy of the GNU Lesser General Public */
/* License along with this library; if not, write to the */
/* Free Software Foundation, Inc., 59 Temple Place - Suite 330, */
/* Boston, MA 02111-1307, USA. */
/* */
/*********************************************************************/
using System;
using System.ServiceModel;
using AgentService.Platform.AMS;
namespace AgentService.Agent.Runtime
{
///
//// Interface IMobilityClient. Defines the contract for
/// all the mobility clients. The mobility client is
/// accessible through the IRuntime interface from
/// within the behaviour objects and it is used to
/// programmatically move a software agent.
///
[ServiceContract]
public interface IMobilityClient
{
///
/// Transfer the selected agent to the given platform
///
/// AID of the agent to move
/// Name of the destination platform
[OperationContract(Name = "Move_AID_Destination")]
void Move(AID aid, string destination);
///
/// Transfer the selected agent to the given platform
///
/// AID of the agent to move
/// Name of the destination platform
/// Timeout for the transfer process
[OperationContract(Name = "Move_AID_Destination_TimeOut")]
void Move(AID aid, string destination, TimeSpan timeout);
}
}