/*********************************************************************/
/* */
/* 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.Collections.Generic;
using System.Text;
using System.Xml.Serialization;
namespace AgentService.Platform.MTS
{
///
/// Class RemotePlatform. It manages the essential information about a federated
/// platform.
///
[XmlRoot("platform")]
public class RemotePlatform
{
///
/// The name of the platform.
///
private string name;
///
/// The IP address of the machine hosting the platform.
///
private string ip;
///
/// The port where the remoting server is listening.
///
private string port;
private PlatformType typeOfPlatform;
///
/// Construct an empty RemotePlatform.
///
public RemotePlatform()
{
name = "";
ip = "";
port = "";
this.typeOfPlatform = PlatformType.Platform;
}
///
/// The name of the platform.
///
[XmlAttribute("name")]
public string Name
{
get
{
return this.name;
}
set
{
this.name = value;
}
}
///
/// The IP address of the machine hosting the platform.
///
[XmlAttribute("ip")]
public string IP
{
get
{
return this.ip;
}
set
{
this.ip = value;
}
}
///
/// The port where the remoting server is listening.
///
[XmlAttribute("port")]
public string Port
{
get
{
return this.port;
}
set
{
this.port = value;
}
}
[XmlAttribute("typeOfPlatform"), XmlText(typeof(PlatformType))]
public PlatformType TypeOfPlatform
{
get
{
return this.typeOfPlatform;
}
set
{
this.typeOfPlatform = value;
}
}
}
}