//-----------------------------------------------------------------------
//
// Copyright (c) 2009 Deltares. All rights reserved.
//
// B.S.T.I.M. The
// tom.the@deltares.nl
// 16-2-2011
// n.a.
//-----------------------------------------------------------------------
namespace Deltares.Dam.Data
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class WaterBoardJob : CompositeJob
{
public WaterBoardJob()
{
}
public WaterBoardJob(object subject): base(subject)
{
}
public bool AreAllDikeLocationsWaterLevelTimeSeriesAssigned()
{
bool areAssigned = true;
foreach (DamJob damJob in Jobs)
{
if (damJob.GetType() == typeof(DikeJob))
{
areAssigned = areAssigned && (((DikeJob)damJob).AreAllLocationWaterLevelTimeSeriesAssigned());
}
}
return areAssigned;
}
}
}