#region Copyright and GPL
/*************************************************************************
 * dataMagus - The open source database learning software
 * Copyright (C) 2007 by all authors
 * Authors: Monika Schwitter (monsy@gmx.ch)
 *          Jürg Zgraggen (j.zgraggen@ejaz.net)
 *          HSLU (Hochschule Luzern - Technik+Architektur)
 * 
 *     This program is free software: you can redistribute it and/or modify
 *     it under the terms of the GNU General Public License as published by
 *     the Free Software Foundation, either version 3 of the License, or
 *     (at your option) any later version.
 * 
 *     This program 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 General Public License for more details.
 * 
 *     You should have received a copy of the GNU General Public License
 *     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *************************************************************************/
#endregion
#region Using
using System;
using System.Collections.Generic;
using System.Text;
using dataMagus.Common.Logical;
#endregion

namespace dataMagus.Common.Physical.Objectoriented
{
	/// <summary>
	/// This class extends a physical objectoriented association for Is-a implementation.
	/// </summary>
    [Serializable]
    public class IsAPhysicalObjectorientedAssociation : PhysicalObjectorientedAssociation
    {
        #region Constructors / Destructors
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="schema">Physical objectoriented schema.</param>
        /// <param name="id">Unique id of the object.</param>
        /// <param name="origin">Origin element the association is based on.</param>
        /// <param name="name">Name of the association.</param>
        /// <param name="class1">First class.</param>
        /// <param name="class2">Second class.</param>
        /// <param name="rolename1">Rolename of the first class.</param>
        /// <param name="rolename2">Rolename of the second class.</param>
        public IsAPhysicalObjectorientedAssociation(PhysicalObjectorientedSchema schema, string id, IElement origin, string name,
            PhysicalObjectorientedClass class1, PhysicalObjectorientedClass class2,
            string rolename1, string rolename2)
            : base(schema, id, origin, name, class1, class2, rolename1, rolename2)
        {
        }
        #endregion

        #region Methodes
        /// <summary>
        /// Writes a the instace of this class to a writer.
        /// </summary>
        /// <param name="writer">Writer object to write into.</param>
        public override void WriteXml(System.Xml.XmlWriter writer)
        {
            writer.WriteStartElement("IsAAssociation");
            base.WriteXml(writer);
            writer.WriteEndElement();
        }
        #endregion
    }
}
