using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
namespace FLY.OBJComponents.IService
{
///
/// PLC代理系统
///
public interface IPLCProxySystemService:INotifyPropertyChanged
{
///
/// 与PLC连接成功
///
bool IsConnectedWithPLC { get; }
///
/// 对象名称
///
Dictionary ObjNames { get; }
///
/// 设置更新计划
///
/// 对象名
/// 属性名
/// 计划的编号,应该全局唯一,建议使用时间ticks
void SetPlan(string objname, IEnumerable propertynames, long planID);
///
/// 设置更新计划
///
/// 对象名
/// 属性名
/// 计划的编号,应该全局唯一,建议使用时间ticks
void SetPlan(string objname, IEnumerable propertynames, SetPlanReponseHandler setPlanReponse, object context);
///
/// 更新计划持续,如果不喂狗,120s后停止更新数据
///
/// 计划的编号
void FeedPlan(long planID);
///
/// 主动删除某个计划
///
///
void RemovePlan(long planID);
}
public delegate void SetPlanReponseHandler(long planid, object context);
}