105 lines
3.6 KiB
C#
105 lines
3.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using ArcGIS.Core.Geometry;
|
|
using ArcGIS.Desktop.Internal.Layouts.Utilities;
|
|
|
|
namespace OliviaAddInPro.Model
|
|
{
|
|
public class TratamientoComun
|
|
{
|
|
/**
|
|
* Capa de ámbitos
|
|
*/
|
|
public string CapaElems { get; set; } = string.Empty;
|
|
/**
|
|
* Velocidad de desplazamiento, en km/h. Si es 0, es determinada por la vía
|
|
*/
|
|
public int VDespl { get; set; } = 0;
|
|
/**
|
|
* Tiempo de tratamiento, en minutos
|
|
*/
|
|
public int Ttto { get; set; } = 5;
|
|
/**
|
|
* Geometría para el filtro de ámbitos, incluye zonas, se añaden los ámbitos que pertenecen a esa geom
|
|
*/
|
|
public Geometry GeomZon { get; set; } = null;
|
|
public string TextGeomZon { get; set; } = string.Empty;
|
|
/**
|
|
* Geometría para el filtro de ámbitos, incluye zonas, se añaden los ámbitos que pertenecen a esa geom
|
|
*/
|
|
public Geometry GeomNiv { get; set; } = null;
|
|
public string TextGeomNiv { get; set; } = string.Empty;
|
|
/**
|
|
* Geometría para el filtro de ámbitos, incluye restricciones, se quitan los ámbitos que pertenecen a esa geom
|
|
*/
|
|
public Geometry GeomRestr { get; set; } = null;
|
|
public string TextGeomRestr { get; set; } = string.Empty;
|
|
/**
|
|
* Coordenadas de la instalación
|
|
*/
|
|
public Coordinate2D CoordsInstal { get; set; } = new Coordinate2D(0, 0);
|
|
/**
|
|
* Buffer para la exportación, en metros
|
|
*/
|
|
public int BuffExport { get; set; } = 1000;
|
|
/**
|
|
* Tiempo de trabajo al día por convenio, en minutos
|
|
*/
|
|
public double TConv { get; set; } = LimpiezaDef.Parametros.t_conv;
|
|
/**
|
|
* Tiempo de descanso del personal, en minutos
|
|
*/
|
|
public double TDescan { get; set; } = LimpiezaDef.Parametros.t_descanso;
|
|
/**
|
|
* Tiempo de carga y descarga, en minutos
|
|
*/
|
|
public double TDescarg { get; set; } = LimpiezaDef.Parametros.t_cardesc;
|
|
/**
|
|
* Tiempo de desplazamiento inicio/fin a las instalaciones, en minutos
|
|
*/
|
|
public double TDesplIniFin { get; set; } = LimpiezaDef.Parametros.t_desp;
|
|
/**
|
|
* hora de inicio de la jornada de trabajo, en minutos
|
|
*/
|
|
public double HIni { get; set; } = LimpiezaDef.Parametros.h_inicio;
|
|
/**
|
|
* Porcentaje de tráfico que se estima, ya que si no los vehículos irían siempre a la velocida máxima permitida por la vía
|
|
*/
|
|
public int Trafico { get; set; } = 80;
|
|
/**
|
|
* Número de puntos de control
|
|
*/
|
|
public int NPtosCtrl { get; set; } = 3;
|
|
/**
|
|
* Número de sectores, si es 0, se calcula automáticamente, si es negativo, se ajusta a jornada
|
|
*/
|
|
public int NSect { get; set; } = 3;
|
|
/**
|
|
* Ignorar o noelementos aislados
|
|
*/
|
|
public bool IgnoAis { get; set; } = true;
|
|
/**
|
|
* Almacena la consulta para exportar los ámbitos
|
|
*/
|
|
public string ConsultaAmbs { get; set; } = "";
|
|
/**
|
|
* String para errores o mensajes
|
|
*/
|
|
private string err_str = string.Empty;
|
|
public string ErrStr
|
|
{
|
|
get {
|
|
/*string val = string.Empty;
|
|
val.CopyFrom(err_str);
|
|
err_str = string.Empty;
|
|
return val; */
|
|
return err_str;
|
|
}
|
|
set { err_str = value;}
|
|
}
|
|
}
|
|
}
|