aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/Synchronization/SynchronizationStatus.cs
blob: 5b1d5d1d26e69a2ec9c2c2df0e20016305de7938 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Core;

namespace Tango.PPC.Common.Synchronization
{
    public class SynchronizationStatus : ExtendedObject
    {
        private SynchronizationState _state;
        public SynchronizationState State
        {
            get { return _state; }
            set { _state = value; RaisePropertyChangedAuto(); }
        }

        private String _message;
        public String Message
        {
            get { return _message; }
            set { _message = value; RaisePropertyChangedAuto(); }
        }

        private String _errorReason;
        public String ErrorReason
        {
            get { return _errorReason; }
            set { _errorReason = value; RaisePropertyChangedAuto(); }
        }

        private TimeSpan? _duration;
        public TimeSpan? Duration        
        {
            get { return _duration; }
            set { _duration = value; RaisePropertyChangedAuto(); }
        }

        private DateTime _startDateTime;
        public DateTime StartDateTime
        {
            get { return _startDateTime; }
            set { _startDateTime = value; RaisePropertyChangedAuto(); }
        }
    }
}
/* Generated by the protocol buffer compiler.  DO NOT EDIT! */
/* Generated from: ProcessParameters.proto */

/* Do not generate deprecated warnings for self */
#ifndef PROTOBUF_C__NO_DEPRECATED
#define PROTOBUF_C__NO_DEPRECATED
#endif

#include "ProcessParameters.pb-c.h"
void   process_parameters__init
                     (ProcessParameters         *message)
{
  static const ProcessParameters init_value = PROCESS_PARAMETERS__INIT;
  *message = init_value;
}
size_t process_parameters__get_packed_size
                     (const ProcessParameters *message)
{
  assert(message->base.descriptor == &process_parameters__descriptor);
  return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
}
size_t process_parameters__pack
                     (const ProcessParameters *message,
                      uint8_t       *out)
{
  assert(message->base.descriptor == &process_parameters__descriptor);
  return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
}
size_t process_parameters__pack_to_buffer
                     (const ProcessParameters *message,
                      ProtobufCBuffer *buffer)
{
  assert(message->base.descriptor == &process_parameters__descriptor);
  return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
}
ProcessParameters *
       process_parameters__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data)
{
  return (ProcessParameters *)
     protobuf_c_message_unpack (&process_parameters__descriptor,
                                allocator, len, data);
}
void   process_parameters__free_unpacked
                     (ProcessParameters *message,
                      ProtobufCAllocator *allocator)
{
  if(!message)
    return;
  assert(message->base.descriptor == &process_parameters__descriptor);
  protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
}
static const ProtobufCFieldDescriptor process_parameters__field_descriptors[31] =
{
  {
    "",
    1,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_DOUBLE,
    offsetof(ProcessParameters, has_dyeingspeed),
    offsetof(ProcessParameters, dyeingspeed),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "",
    2,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_DOUBLE,
    offsetof(ProcessParameters, has_mininkuptake),
    offsetof(ProcessParameters, mininkuptake),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "",
    3,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_DOUBLE,
    offsetof(ProcessParameters, has_maxinkuptake),
    offsetof(ProcessParameters, maxinkuptake),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "",
    4,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_DOUBLE,
    offsetof(ProcessParameters, has_feedertension),
    offsetof(ProcessParameters, feedertension),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "",
    5,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_DOUBLE,
    offsetof(ProcessParameters, has_pullertension),
    offsetof(ProcessParameters, pullertension),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "",
    6,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_DOUBLE,
    offsetof(ProcessParameters, has_windertension),
    offsetof(ProcessParameters, windertension),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "",
    7,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_DOUBLE,
    offsetof(ProcessParameters, has_mixertemp),
    offsetof(ProcessParameters, mixertemp),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "",
    8,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_DOUBLE,
    offsetof(ProcessParameters, has_headzone1temp),
    offsetof(ProcessParameters, headzone1temp),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "",
    9,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_DOUBLE,
    offsetof(ProcessParameters, has_headzone2temp),
    offsetof(ProcessParameters, headzone2temp),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "",
    10,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_DOUBLE,
    offsetof(ProcessParameters, has_headzone3temp),
    offsetof(ProcessParameters, headzone3temp),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "",
    11,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_DOUBLE,
    offsetof(ProcessParameters, has_headzone4temp),
    offsetof(ProcessParameters, headzone4temp),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "",
    12,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_DOUBLE,
    offsetof(ProcessParameters, has_headzone5temp),
    offsetof(ProcessParameters, headzone5temp),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "",
    13,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_DOUBLE,
    offsetof(ProcessParameters, has_headzone6temp),
    offsetof(ProcessParameters, headzone6temp),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "",
    14,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_DOUBLE,
    offsetof(ProcessParameters, has_dryerairflow),
    offsetof(ProcessParameters, dryerairflow),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "",
    15,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_DOUBLE,
    offsetof(ProcessParameters, has_dryerzone1temp),
    offsetof(ProcessParameters, dryerzone1temp),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "",
    16,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_DOUBLE,
    offsetof(ProcessParameters, has_dryerzone2temp),
    offsetof(ProcessParameters, dryerzone2temp),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "",
    17,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_DOUBLE,
    offsetof(ProcessParameters, has_dryerzone3temp),
    offsetof(ProcessParameters, dryerzone3temp),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "",
    18,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_DOUBLE,
    offsetof(ProcessParameters, has_dryerbufferlength),
    offsetof(ProcessParameters, dryerbufferlength),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "",
    19,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_DOUBLE,
    offsetof(ProcessParameters, has_headairflow),
    offsetof(ProcessParameters, headairflow),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "",
    20,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_INT32,
    offsetof(ProcessParameters, has_tableindex),
    offsetof(ProcessParameters, tableindex),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "",
    21,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_DOUBLE,
    offsetof(ProcessParameters, has_headzone7temp),
    offsetof(ProcessParameters, headzone7temp),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "",
    22,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_DOUBLE,
    offsetof(ProcessParameters, has_headzone8temp),
    offsetof(ProcessParameters, headzone8temp),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "",
    23,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_DOUBLE,
    offsetof(ProcessParameters, has_headzone9temp),
    offsetof(ProcessParameters, headzone9temp),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "",
    24,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_DOUBLE,
    offsetof(ProcessParameters, has_headzone10temp),
    offsetof(ProcessParameters, headzone10temp),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "",
    25,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_DOUBLE,
    offsetof(ProcessParameters, has_headzone11temp),
    offsetof(ProcessParameters, headzone11temp),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "",
    26,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_DOUBLE,
    offsetof(ProcessParameters, has_headzone12temp),
    offsetof(ProcessParameters, headzone12temp),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "",
    27,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_DOUBLE,
    offsetof(ProcessParameters, has_rblowerflow),
    offsetof(ProcessParameters, rblowerflow),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "",
    28,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_DOUBLE,
    offsetof(ProcessParameters, has_rblowertemp),
    offsetof(ProcessParameters, rblowertemp),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "",
    29,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_DOUBLE,
    offsetof(ProcessParameters, has_lblowerflow),
    offsetof(ProcessParameters, lblowerflow),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "",
    30,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_DOUBLE,
    offsetof(ProcessParameters, has_lblowertemp),
    offsetof(ProcessParameters, lblowertemp),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
  {
    "",
    31,
    PROTOBUF_C_LABEL_OPTIONAL,
    PROTOBUF_C_TYPE_DOUBLE,
    offsetof(ProcessParameters, has_pressurebuildup),
    offsetof(ProcessParameters, pressurebuildup),
    NULL,
    NULL,
    0,             /* flags */
    0,NULL,NULL    /* reserved1,reserved2, etc */
  },
};
static const unsigned process_parameters__field_indices_by_name[] = {
  13,   /* field[13] = DryerAirFlow */
  17,   /* field[17] = DryerBufferLength */
  14,   /* field[14] = DryerZone1Temp */
  15,   /* field[15] = DryerZone2Temp */
  16,   /* field[16] = DryerZone3Temp */
  0,   /* field[0] = DyeingSpeed */
  3,   /* field[3] = FeederTension */
  18,   /* field[18] = HeadAirFlow */
  23,   /* field[23] = HeadZone10Temp */
  24,   /* field[24] = HeadZone11Temp */
  25,   /* field[25] = HeadZone12Temp */
  7,   /* field[7] = HeadZone1Temp */
  8,   /* field[8] = HeadZone2Temp */
  9,   /* field[9] = HeadZone3Temp */
  10,   /* field[10] = HeadZone4Temp */
  11,   /* field[11] = HeadZone5Temp */
  12,   /* field[12] = HeadZone6Temp */
  20,   /* field[20] = HeadZone7Temp */
  21,   /* field[21] = HeadZone8Temp */
  22,   /* field[22] = HeadZone9Temp */
  28,   /* field[28] = LBlowerFlow */
  29,   /* field[29] = LBlowerTemp */
  2,   /* field[2] = MaxInkUptake */
  1,   /* field[1] = MinInkUptake */
  6,   /* field[6] = MixerTemp */
  30,   /* field[30] = PressureBuildUp */
  4,   /* field[4] = PullerTension */
  26,   /* field[26] = RBlowerFlow */
  27,   /* field[27] = RBlowerTemp */
  19,   /* field[19] = TableIndex */
  5,   /* field[5] = WinderTension */
};
static const ProtobufCIntRange process_parameters__number_ranges[1 + 1] =
{
  { 1, 0 },
  { 0, 31 }
};
const ProtobufCMessageDescriptor process_parameters__descriptor =
{
  PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
  "",
  "",
  "",
  "",
  sizeof(ProcessParameters),
  31,
  process_parameters__field_descriptors,
  process_parameters__field_indices_by_name,
  1,  process_parameters__number_ranges,
  (ProtobufCMessageInit) process_parameters__init,
  NULL,NULL,NULL    /* reserved[123] */
};