﻿'------------------------------------------------------------------------------
' <autogenerated>
'     This code was generated by a tool.
'     Runtime Version: 1.1.4322.2032
'
'     Changes to this file may cause incorrect behavior and will be lost if 
'     the code is regenerated.
' </autogenerated>
'------------------------------------------------------------------------------

Option Strict Off
Option Explicit On

Imports System
Imports System.ComponentModel
Imports System.Diagnostics
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.Xml.Serialization

'
'This source code was auto-generated by Microsoft.VSDesigner, Version 1.1.4322.2032.
'
Namespace edu.washington.apl.aloha
    
    '<remarks/>
    <System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Web.Services.WebServiceBindingAttribute(Name:="load_binding", [Namespace]:="http://134.89.42.15/wsdl/pmacs.wsdl"),  _
     System.Xml.Serialization.SoapIncludeAttribute(GetType(sensorType)),  _
     System.Xml.Serialization.SoapIncludeAttribute(GetType(busType))>  _
    Public Class load_service
        Inherits System.Web.Services.Protocols.SoapHttpClientProtocol
        
        '<remarks/>
        Public Sub New()
            MyBase.New
            Me.Url = "http://134.89.42.15:8080/pmacs"
        End Sub
        
        '<remarks/>
        <System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:pmacs-test", RequestNamespace:="urn:pmacs-test", ResponseNamespace:="urn:pmacs-test")>  _
        Public Function getLoad(ByVal id As String) As <System.Xml.Serialization.SoapElementAttribute("return")> loadType
            Dim results() As Object = Me.Invoke("getLoad", New Object() {id})
            Return CType(results(0),loadType)
        End Function
        
        '<remarks/>
        Public Function BegingetLoad(ByVal id As String, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Return Me.BeginInvoke("getLoad", New Object() {id}, callback, asyncState)
        End Function
        
        '<remarks/>
        Public Function EndgetLoad(ByVal asyncResult As System.IAsyncResult) As loadType
            Dim results() As Object = Me.EndInvoke(asyncResult)
            Return CType(results(0),loadType)
        End Function
        
        '<remarks/>
        <System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:pmacs-test", RequestNamespace:="urn:pmacs-test", ResponseNamespace:="urn:pmacs-test")>  _
        Public Function getLoads(ByVal id As String) As <System.Xml.Serialization.SoapElementAttribute("return")> loadListType
            Dim results() As Object = Me.Invoke("getLoads", New Object() {id})
            Return CType(results(0),loadListType)
        End Function
        
        '<remarks/>
        Public Function BegingetLoads(ByVal id As String, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Return Me.BeginInvoke("getLoads", New Object() {id}, callback, asyncState)
        End Function
        
        '<remarks/>
        Public Function EndgetLoads(ByVal asyncResult As System.IAsyncResult) As loadListType
            Dim results() As Object = Me.EndInvoke(asyncResult)
            Return CType(results(0),loadListType)
        End Function
        
        '<remarks/>
        <System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:pmacs-test", RequestNamespace:="urn:pmacs-test", ResponseNamespace:="urn:pmacs-test")>  _
        Public Function setLoad(ByVal id As String, ByVal newstate As loadUpdateType) As <System.Xml.Serialization.SoapElementAttribute("return")> String
            Dim results() As Object = Me.Invoke("setLoad", New Object() {id, newstate})
            Return CType(results(0),String)
        End Function
        
        '<remarks/>
        Public Function BeginsetLoad(ByVal id As String, ByVal newstate As loadUpdateType, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Return Me.BeginInvoke("setLoad", New Object() {id, newstate}, callback, asyncState)
        End Function
        
        '<remarks/>
        Public Function EndsetLoad(ByVal asyncResult As System.IAsyncResult) As String
            Dim results() As Object = Me.EndInvoke(asyncResult)
            Return CType(results(0),String)
        End Function
        
        '<remarks/>
        <System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:pmacs-test", RequestNamespace:="urn:pmacs-test", ResponseNamespace:="urn:pmacs-test")>  _
        Public Function getBuses(ByVal id As String) As <System.Xml.Serialization.SoapElementAttribute("return")> busListType
            Dim results() As Object = Me.Invoke("getBuses", New Object() {id})
            Return CType(results(0),busListType)
        End Function
        
        '<remarks/>
        Public Function BegingetBuses(ByVal id As String, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Return Me.BeginInvoke("getBuses", New Object() {id}, callback, asyncState)
        End Function
        
        '<remarks/>
        Public Function EndgetBuses(ByVal asyncResult As System.IAsyncResult) As busListType
            Dim results() As Object = Me.EndInvoke(asyncResult)
            Return CType(results(0),busListType)
        End Function
        
        '<remarks/>
        <System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:pmacs-test", RequestNamespace:="urn:pmacs-test", ResponseNamespace:="urn:pmacs-test")>  _
        Public Function getSensors(ByVal id As String) As <System.Xml.Serialization.SoapElementAttribute("return")> sensorListType
            Dim results() As Object = Me.Invoke("getSensors", New Object() {id})
            Return CType(results(0),sensorListType)
        End Function
        
        '<remarks/>
        Public Function BegingetSensors(ByVal id As String, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Return Me.BeginInvoke("getSensors", New Object() {id}, callback, asyncState)
        End Function
        
        '<remarks/>
        Public Function EndgetSensors(ByVal asyncResult As System.IAsyncResult) As sensorListType
            Dim results() As Object = Me.EndInvoke(asyncResult)
            Return CType(results(0),sensorListType)
        End Function
        
        '<remarks/>
        <System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:pmacs-test", RequestNamespace:="urn:pmacs-test", ResponseNamespace:="urn:pmacs-test")>  _
        Public Function setValidator(ByVal url As String, ByVal ns As String) As <System.Xml.Serialization.SoapElementAttribute("return")> String
            Dim results() As Object = Me.Invoke("setValidator", New Object() {url, ns})
            Return CType(results(0),String)
        End Function
        
        '<remarks/>
        Public Function BeginsetValidator(ByVal url As String, ByVal ns As String, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Return Me.BeginInvoke("setValidator", New Object() {url, ns}, callback, asyncState)
        End Function
        
        '<remarks/>
        Public Function EndsetValidator(ByVal asyncResult As System.IAsyncResult) As String
            Dim results() As Object = Me.EndInvoke(asyncResult)
            Return CType(results(0),String)
        End Function
        
        '<remarks/>
        <System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:pmacs-test", RequestNamespace:="urn:pmacs-test", ResponseNamespace:="urn:pmacs-test")>  _
        Public Function getMV(ByVal id As String) As <System.Xml.Serialization.SoapElementAttribute("return")> mvType
            Dim results() As Object = Me.Invoke("getMV", New Object() {id})
            Return CType(results(0),mvType)
        End Function
        
        '<remarks/>
        Public Function BegingetMV(ByVal id As String, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Return Me.BeginInvoke("getMV", New Object() {id}, callback, asyncState)
        End Function
        
        '<remarks/>
        Public Function EndgetMV(ByVal asyncResult As System.IAsyncResult) As mvType
            Dim results() As Object = Me.EndInvoke(asyncResult)
            Return CType(results(0),mvType)
        End Function
        
        '<remarks/>
        <System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:pmacs-test", RequestNamespace:="urn:pmacs-test", ResponseNamespace:="urn:pmacs-test")>  _
        Public Function checkGF(ByVal id As String) As <System.Xml.Serialization.SoapElementAttribute("return")> Integer
            Dim results() As Object = Me.Invoke("checkGF", New Object() {id})
            Return CType(results(0),Integer)
        End Function
        
        '<remarks/>
        Public Function BegincheckGF(ByVal id As String, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Return Me.BeginInvoke("checkGF", New Object() {id}, callback, asyncState)
        End Function
        
        '<remarks/>
        Public Function EndcheckGF(ByVal asyncResult As System.IAsyncResult) As Integer
            Dim results() As Object = Me.EndInvoke(asyncResult)
            Return CType(results(0),Integer)
        End Function
        
        '<remarks/>
        <System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:pmacs-test", RequestNamespace:="urn:pmacs-test", ResponseNamespace:="urn:pmacs-test")>  _
        Public Function getSPS(ByVal id As String) As <System.Xml.Serialization.SoapElementAttribute("return")> spsType
            Dim results() As Object = Me.Invoke("getSPS", New Object() {id})
            Return CType(results(0),spsType)
        End Function
        
        '<remarks/>
        Public Function BegingetSPS(ByVal id As String, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Return Me.BeginInvoke("getSPS", New Object() {id}, callback, asyncState)
        End Function
        
        '<remarks/>
        Public Function EndgetSPS(ByVal asyncResult As System.IAsyncResult) As spsType
            Dim results() As Object = Me.EndInvoke(asyncResult)
            Return CType(results(0),spsType)
        End Function
        
        '<remarks/>
        <System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:pmacs-test", RequestNamespace:="urn:pmacs-test", ResponseNamespace:="urn:pmacs-test")>  _
        Public Function setSPSVoltage(ByVal value As Integer) As <System.Xml.Serialization.SoapElementAttribute("return")> String
            Dim results() As Object = Me.Invoke("setSPSVoltage", New Object() {value})
            Return CType(results(0),String)
        End Function
        
        '<remarks/>
        Public Function BeginsetSPSVoltage(ByVal value As Integer, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Return Me.BeginInvoke("setSPSVoltage", New Object() {value}, callback, asyncState)
        End Function
        
        '<remarks/>
        Public Function EndsetSPSVoltage(ByVal asyncResult As System.IAsyncResult) As String
            Dim results() As Object = Me.EndInvoke(asyncResult)
            Return CType(results(0),String)
        End Function
        
        '<remarks/>
        <System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:pmacs-test", RequestNamespace:="urn:pmacs-test", ResponseNamespace:="urn:pmacs-test")>  _
        Public Function setSPSCurrent(ByVal value As Integer) As <System.Xml.Serialization.SoapElementAttribute("return")> String
            Dim results() As Object = Me.Invoke("setSPSCurrent", New Object() {value})
            Return CType(results(0),String)
        End Function
        
        '<remarks/>
        Public Function BeginsetSPSCurrent(ByVal value As Integer, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Return Me.BeginInvoke("setSPSCurrent", New Object() {value}, callback, asyncState)
        End Function
        
        '<remarks/>
        Public Function EndsetSPSCurrent(ByVal asyncResult As System.IAsyncResult) As String
            Dim results() As Object = Me.EndInvoke(asyncResult)
            Return CType(results(0),String)
        End Function
        
        '<remarks/>
        <System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:pmacs-test", RequestNamespace:="urn:pmacs-test", ResponseNamespace:="urn:pmacs-test")>  _
        Public Function setSPSState(ByVal value As Integer) As <System.Xml.Serialization.SoapElementAttribute("return")> String
            Dim results() As Object = Me.Invoke("setSPSState", New Object() {value})
            Return CType(results(0),String)
        End Function
        
        '<remarks/>
        Public Function BeginsetSPSState(ByVal value As Integer, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Return Me.BeginInvoke("setSPSState", New Object() {value}, callback, asyncState)
        End Function
        
        '<remarks/>
        Public Function EndsetSPSState(ByVal asyncResult As System.IAsyncResult) As String
            Dim results() As Object = Me.EndInvoke(asyncResult)
            Return CType(results(0),String)
        End Function
        
        '<remarks/>
        <System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:pmacs-test", RequestNamespace:="urn:pmacs-test", ResponseNamespace:="urn:pmacs-test")>  _
        Public Function setSPSTc(ByVal value As Integer) As <System.Xml.Serialization.SoapElementAttribute("return")> String
            Dim results() As Object = Me.Invoke("setSPSTc", New Object() {value})
            Return CType(results(0),String)
        End Function
        
        '<remarks/>
        Public Function BeginsetSPSTc(ByVal value As Integer, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Return Me.BeginInvoke("setSPSTc", New Object() {value}, callback, asyncState)
        End Function
        
        '<remarks/>
        Public Function EndsetSPSTc(ByVal asyncResult As System.IAsyncResult) As String
            Dim results() As Object = Me.EndInvoke(asyncResult)
            Return CType(results(0),String)
        End Function
        
        '<remarks/>
        <System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:pmacs-test", RequestNamespace:="urn:pmacs-test", ResponseNamespace:="urn:pmacs-test")>  _
        Public Function getNPCState() As <System.Xml.Serialization.SoapElementAttribute("return")> Integer
            Dim results() As Object = Me.Invoke("getNPCState", New Object(-1) {})
            Return CType(results(0),Integer)
        End Function
        
        '<remarks/>
        Public Function BegingetNPCState(ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Return Me.BeginInvoke("getNPCState", New Object(-1) {}, callback, asyncState)
        End Function
        
        '<remarks/>
        Public Function EndgetNPCState(ByVal asyncResult As System.IAsyncResult) As Integer
            Dim results() As Object = Me.EndInvoke(asyncResult)
            Return CType(results(0),Integer)
        End Function
        
        '<remarks/>
        <System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:pmacs-test", RequestNamespace:="urn:pmacs-test", ResponseNamespace:="urn:pmacs-test")>  _
        Public Function getPSCState() As <System.Xml.Serialization.SoapElementAttribute("return")> Integer
            Dim results() As Object = Me.Invoke("getPSCState", New Object(-1) {})
            Return CType(results(0),Integer)
        End Function
        
        '<remarks/>
        Public Function BegingetPSCState(ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Return Me.BeginInvoke("getPSCState", New Object(-1) {}, callback, asyncState)
        End Function
        
        '<remarks/>
        Public Function EndgetPSCState(ByVal asyncResult As System.IAsyncResult) As Integer
            Dim results() As Object = Me.EndInvoke(asyncResult)
            Return CType(results(0),Integer)
        End Function
    End Class
    
    '<remarks/>
    <System.Xml.Serialization.SoapTypeAttribute("loadType", "http://pmacs.apl.washington.edu/schema")>  _
    Public Class loadType
        
        '<remarks/>
        Public port As Integer
        
        '<remarks/>
        Public switch As Integer
        
        '<remarks/>
        Public deadface As Integer
        
        '<remarks/>
        Public breaker As Integer
        
        '<remarks/>
        Public bus As String
        
        '<remarks/>
        Public [error] As String
        
        '<remarks/>
        Public current As Integer
        
        '<remarks/>
        Public current_limit As Integer
        
        '<remarks/>
        Public name As String
    End Class
    
    '<remarks/>
    <System.Xml.Serialization.SoapTypeAttribute("spsType", "http://pmacs.apl.washington.edu/schema")>  _
    Public Class spsType
        
        '<remarks/>
        Public current As Integer
        
        '<remarks/>
        Public voltage As Integer
        
        '<remarks/>
        Public state As Integer
        
        '<remarks/>
        Public tc As Integer
    End Class
    
    '<remarks/>
    <System.Xml.Serialization.SoapTypeAttribute("mvType", "http://pmacs.apl.washington.edu/schema")>  _
    Public Class mvType
        
        '<remarks/>
        Public tsecs As Integer
        
        '<remarks/>
        Public tusecs As Integer
        
        '<remarks/>
        Public voltage As Integer
        
        '<remarks/>
        Public current As Integer
        
        '<remarks/>
        Public current_diff As Integer
        
        '<remarks/>
        Public v400a As Integer
        
        '<remarks/>
        Public v400b As Integer
        
        '<remarks/>
        Public i400a As Integer
        
        '<remarks/>
        Public i400b As Integer
        
        '<remarks/>
        Public aworking As Integer
        
        '<remarks/>
        Public bworking As Integer
        
        '<remarks/>
        Public aok As Integer
        
        '<remarks/>
        Public bok As Integer
        
        '<remarks/>
        Public s2open As Integer
        
        '<remarks/>
        Public astages() As Integer
        
        '<remarks/>
        Public bstages() As Integer
    End Class
    
    '<remarks/>
    <System.Xml.Serialization.SoapTypeAttribute("sensorType", "http://pmacs.apl.washington.edu/schema")>  _
    Public Class sensorType
        
        '<remarks/>
        Public name As String
        
        '<remarks/>
        Public units As String
        
        '<remarks/>
        Public value As Double
    End Class
    
    '<remarks/>
    <System.Xml.Serialization.SoapTypeAttribute("sensorListType", "http://pmacs.apl.washington.edu/schema")>  _
    Public Class sensorListType
        
        '<remarks/>
        Public tsecs As Integer
        
        '<remarks/>
        Public tusecs As Integer
        
        '<remarks/>
        Public data() As sensorType
    End Class
    
    '<remarks/>
    <System.Xml.Serialization.SoapTypeAttribute("busType", "http://pmacs.apl.washington.edu/schema")>  _
    Public Class busType
        
        '<remarks/>
        Public current As Integer
        
        '<remarks/>
        Public voltage As Integer
        
        '<remarks/>
        Public name As String
    End Class
    
    '<remarks/>
    <System.Xml.Serialization.SoapTypeAttribute("busListType", "http://pmacs.apl.washington.edu/schema")>  _
    Public Class busListType
        
        '<remarks/>
        Public tsecs As Integer
        
        '<remarks/>
        Public tusecs As Integer
        
        '<remarks/>
        Public data() As busType
    End Class
    
    '<remarks/>
    <System.Xml.Serialization.SoapTypeAttribute("loadUpdateType", "http://pmacs.apl.washington.edu/schema")>  _
    Public Class loadUpdateType
        
        '<remarks/>
        Public state As Integer
        
        '<remarks/>
        Public current_limit As Integer
        
        '<remarks/>
        Public name As String
    End Class
    
    '<remarks/>
    <System.Xml.Serialization.SoapTypeAttribute("loadListType", "http://pmacs.apl.washington.edu/schema")>  _
    Public Class loadListType
        
        '<remarks/>
        Public tsecs As Integer
        
        '<remarks/>
        Public tusecs As Integer
        
        '<remarks/>
        Public data() As loadType
    End Class
End Namespace
