//-----------------------------------------------------------------------
//
// Copyright (c) 2009 Deltares. All rights reserved.
//
// B.S.T.I.M. The
// tom.the@deltares.nl
// 16-2-2011
// n.a.
//-----------------------------------------------------------------------
using System.Xml.Serialization;
namespace Deltares.Dam.Data
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class DikeJob : CompositeJob
{
public DikeJob()
{
}
public DikeJob(object subject) : base(subject)
{
}
[XmlIgnore]
public Dike Dike
{
get
{
return this.Subject as Dike;
}
set
{
this.Subject = value;
}
}
public bool AreAllLocationWaterLevelTimeSeriesAssigned()
{
bool areAssigned = true;
foreach (DamJob damJob in Jobs)
{
if (damJob.GetType() == typeof(LocationJob))
{
areAssigned = areAssigned && (((LocationJob)damJob).WaterLevelTimeSerie != null);
}
}
return areAssigned;
}
}
}