/// <summary> /// A connector is the socket or cable available for the electric vehicle to make use of. /// </summary> /// <param name="Id">Identifier of the connector within the EVSE.</param> /// <param name="Standard">The standard of the installed connector.</param> /// <param name="Format">The format (socket/cable) of the installed connector.</param> /// <param name="PowerType">The type of powert at the connector.</param> /// <param name="MaxVoltage">Voltage of the connector (line to neutral for AC_3_PHASE), in volt [V].</param> /// <param name="MaxAmperage">Maximum amperage of the connector, in ampere [A].</param> /// <param name="MaxElectricPower">Maximum electric power that can be delivered by this connector, in Watts (W).</param> /// <param name="TariffIds">Identifiers of the currently valid charging tariffs.</param> /// <param name="TermsAndConditionsURL">Optional URL to the operator's terms and conditions.</param> /// <param name="LastUpdated">Timestamp when this connector was last updated (or created).</param> public Connector(Connector_Id Id, ConnectorTypes Standard, ConnectorFormats Format, PowerTypes PowerType, UInt16 MaxVoltage, UInt16 MaxAmperage, UInt32?MaxElectricPower = null, IEnumerable <Tariff_Id> TariffIds = null, URL?TermsAndConditionsURL = null, DateTime?LastUpdated = null) : this(null, Id, Standard, Format, PowerType, MaxVoltage, MaxAmperage, MaxElectricPower, TariffIds, TermsAndConditionsURL, LastUpdated) { }
/// <summary> /// Create a new charge detail record location containing only the relevant /// information from the official location. /// </summary> public CDRLocation(Location_Id Id, String Address, String City, String Country, GeoCoordinate Coordinates, EVSE_UId EVSEUId, EVSE_Id EVSEId, Connector_Id ConnectorId, ConnectorTypes ConnectorStandard, ConnectorFormats ConnectorFormat, PowerTypes ConnectorPowerType, String Name = null, String PostalCode = null) { this.Id = Id; this.Address = Address; this.City = City; this.Country = Country; this.Coordinates = Coordinates; this.EVSEUId = EVSEUId; this.EVSEId = EVSEId; this.ConnectorId = ConnectorId; this.ConnectorStandard = ConnectorStandard; this.ConnectorFormat = ConnectorFormat; this.ConnectorPowerType = ConnectorPowerType; this.Name = Name; this.PostalCode = PostalCode; }
/// <summary> /// A connector is the socket or cable available for the electric vehicle to make use of. /// </summary> /// <param name="ParentEVSE">The parent EVSE of this connector.</param> /// /// <param name="Id">Identifier of the connector within the EVSE.</param> /// <param name="Standard">The standard of the installed connector.</param> /// <param name="Format">The format (socket/cable) of the installed connector.</param> /// <param name="PowerType">The type of powert at the connector.</param> /// <param name="MaxVoltage">Voltage of the connector (line to neutral for AC_3_PHASE), in volt [V].</param> /// <param name="MaxAmperage">Maximum amperage of the connector, in ampere [A].</param> /// /// <param name="MaxElectricPower">Maximum electric power that can be delivered by this connector, in Watts (W).</param> /// <param name="TariffIds">Identifiers of the currently valid charging tariffs.</param> /// <param name="TermsAndConditionsURL">Optional URL to the operator's terms and conditions.</param> /// /// <param name="LastUpdated">Timestamp when this connector was last updated (or created).</param> internal Connector(EVSE ParentEVSE, Connector_Id Id, ConnectorTypes Standard, ConnectorFormats Format, PowerTypes PowerType, UInt16 MaxVoltage, UInt16 MaxAmperage, UInt32?MaxElectricPower = null, IEnumerable <Tariff_Id> TariffIds = null, URL?TermsAndConditionsURL = null, DateTime?LastUpdated = null) { this.ParentEVSE = ParentEVSE; this.Id = Id; this.Standard = Standard; this.Format = Format; this.PowerType = PowerType; this.MaxVoltage = MaxVoltage; this.MaxAmperage = MaxAmperage; this.MaxElectricPower = MaxElectricPower; this.TariffIds = TariffIds?.Distinct() ?? new Tariff_Id[0]; this.TermsAndConditionsURL = TermsAndConditionsURL; this.LastUpdated = LastUpdated ?? DateTime.Now; CalcSHA256Hash(); }
public void UpdateVisibility(ConnectorType connectorType) { Visible = ConnectorTypes.Contains(connectorType); foreach (Control ctrl in Controls) { ctrl.Visible = Visible; } }
public static Connector CreateConnector(string name, ConnectorTypes connectorType) { Connector connector = new Connector { ConnectorType = connectorType, Name = name }; return connector; }
public static Connector CreateConnector(string name, ConnectorTypes connectorType) { Connector connector = new Connector { ConnectorType = connectorType, Name = name }; return(connector); }
public Connector() { this.Priority = 50; this.Protocol = ""; this.AppProtocol = ""; this.Host = ""; this.Port = 17555; this.HostType = ""; this.Zombie = false; this.TransportProtocol = "IP"; this.Type = ConnectorTypes.Connect; }
public Connector() { this.Priority = 50; this.Protocol = ""; this.AppProtocol = ""; this.Host = ""; this.Port = 17555; this.HostType = ""; this.Zombie = false; this.TransportProtocol = "IP"; this.Type = ConnectorTypes.Connect; }
protected BusinessProduct() { MapProduct = GetProduct(); ConnectorProduct = GetConnectorType(); }
public IEnumerable <string> GetConnectors(ConnectorTypes ofType) { return((from i in Resolver.GetImplementationsOf <IBatchConnector <T> >() where Resolver.Activate <IBatchConnector <T> >(i.Key).Type == ofType select i.Key).ToList()); }
protected BusinessProduct() { MapProduct = GetProduct(); ConnectorProduct = GetConnectorType(); }