Ñò ²ŸGc@s–ddkZddkZdaddd„ƒYZdefd„ƒYZdd„Zd „Zd „Zd „Z d „Z d „Z d„Z d„Z dS(iÿÿÿÿNitpointcBs\eZdZd d d d„Zd„Zdd„Zdd„Zd„Zd„Z d „Z RS( s'A class to give access to MatPLC pointscCsxtp d‚n|djo-|djo |djotiƒ|_n*t|ƒtijo[|djoN|djoAti|ƒ\|_}|pd|_t d|d‚qtn¹t|ƒti jo*|djo|djo|i|_nyt|ƒti joY|djoL|djo?ti |i||ƒ\|_}|pd|_d‚qtn t d‚dS(Nsmust call matplc.init() firstsmatplc point "s " not foundscould not make a subpoints/point() or point(name) or point(parent,bit,len)( tinitedtNonetCtpt_nulltptttypettypest StringTypet pt_by_nametKeyErrort InstanceTypetsubptt TypeError(tselftatbtctvalid((sU/hermes/bosweb/web164/b1642/apo.tuamzbfy/acelab.com/mat/mat-ace/lang/python/matplc.pyt__init__s" '0 00! cCsti|iƒS(N(Rtplc_getR(R((sU/hermes/bosweb/web164/b1642/apo.tuamzbfy/acelab.com/mat/mat-ace/lang/python/matplc.pytget"sicCsti|i|ƒdS(N(Rtplc_setR(Rtv((sU/hermes/bosweb/web164/b1642/apo.tuamzbfy/acelab.com/mat/mat-ace/lang/python/matplc.pytset$sicCsti|i|ƒdS(N(RRR(RR((sU/hermes/bosweb/web164/b1642/apo.tuamzbfy/acelab.com/mat/mat-ace/lang/python/matplc.pytreset&scCsti|iƒdjdS(Ni(RRR(R((sU/hermes/bosweb/web164/b1642/apo.tuamzbfy/acelab.com/mat/mat-ace/lang/python/matplc.pyt __nonzero__(scCs-ti|iƒ}|djo d‚n|S(Niÿÿÿÿs&Something bad happened in plc_pt_len()(Rtpt_lenR(Rtlen((sU/hermes/bosweb/web164/b1642/apo.tuamzbfy/acelab.com/mat/mat-ace/lang/python/matplc.pyt__len__*s cCsvt|ƒtijoL|idjo|idjo d‚nt||i|i|idƒSt||dƒSdS(Nis#must not specify step for subpoints(RRt SliceTypetstepRRtstarttstop(Rti((sU/hermes/bosweb/web164/b1642/apo.tuamzbfy/acelab.com/mat/mat-ace/lang/python/matplc.pyt __getitem__.s   "N( t__name__t __module__t__doc__RRRRRRRR#(((sU/hermes/bosweb/web164/b1642/apo.tuamzbfy/acelab.com/mat/mat-ace/lang/python/matplc.pyRs     tpoint_fcBs5eZdZd„Zd„Zdd„Zd„ZRS(s6A class to give access to MatPLC floating-point pointscCsti|iƒS(N(Rt plc_get_fR(R((sU/hermes/bosweb/web164/b1642/apo.tuamzbfy/acelab.com/mat/mat-ace/lang/python/matplc.pyR8scCsti|i|ƒdS(N(Rt plc_set_fR(RR((sU/hermes/bosweb/web164/b1642/apo.tuamzbfy/acelab.com/mat/mat-ace/lang/python/matplc.pyR:sgcCsti|i|ƒdS(N(RR)R(RR((sU/hermes/bosweb/web164/b1642/apo.tuamzbfy/acelab.com/mat/mat-ace/lang/python/matplc.pyR<scCs d‚dS(Ns6can't implicitly test a floating-point point for truth((R((sU/hermes/bosweb/web164/b1642/apo.tuamzbfy/acelab.com/mat/mat-ace/lang/python/matplc.pyR>s(R$R%R&RRRR(((sU/hermes/bosweb/web164/b1642/apo.tuamzbfy/acelab.com/mat/mat-ace/lang/python/matplc.pyR'6s    tpythoncCsGto#|tdjotd‚qCnti|ƒ|dfadS(Niis$already inited with a different name(RRtinit(tmodname((sU/hermes/bosweb/web164/b1642/apo.tuamzbfy/acelab.com/mat/mat-ace/lang/python/matplc.pyR+As  cCs t|ƒS(N(R(tname((sU/hermes/bosweb/web164/b1642/apo.tuamzbfy/acelab.com/mat/mat-ace/lang/python/matplc.pyR JscCstiƒdS(N(Rt plc_scan_beg(((sU/hermes/bosweb/web164/b1642/apo.tuamzbfy/acelab.com/mat/mat-ace/lang/python/matplc.pytscan_begKscCstiƒdS(N(Rt plc_scan_end(((sU/hermes/bosweb/web164/b1642/apo.tuamzbfy/acelab.com/mat/mat-ace/lang/python/matplc.pytscan_endLscCstiƒdS(N(Rt plc_update(((sU/hermes/bosweb/web164/b1642/apo.tuamzbfy/acelab.com/mat/mat-ace/lang/python/matplc.pytupdateMscCsti|iƒS(N(RRR(tp((sU/hermes/bosweb/web164/b1642/apo.tuamzbfy/acelab.com/mat/mat-ace/lang/python/matplc.pyRNscCsti|i|ƒdS(N(RRR(R4R((sU/hermes/bosweb/web164/b1642/apo.tuamzbfy/acelab.com/mat/mat-ace/lang/python/matplc.pyROscCstiƒdadS(Ns'reiniting after done() not yet debugged(Ns'reiniting after done() not yet debugged(Rtplc_doneRR(((sU/hermes/bosweb/web164/b1642/apo.tuamzbfy/acelab.com/mat/mat-ace/lang/python/matplc.pytdoneTs ((tmatplc_internalRRRRR'R+R R/R1R3RRR6(((sU/hermes/bosweb/web164/b1642/apo.tuamzbfy/acelab.com/mat/mat-ace/lang/python/matplc.pyts  0