public Sc_interface_version(InterfaceVersion interface_version) { this(interface_version.value()); }
/** * Get the <tt>InterfaceVersion</tt> by specified value. * * @param value is the value associated by the enum constant. * @return the enum const assiciated with specified <tt>value</tt>. * @throws IllegalArgumentException if there is <tt>InterfaceVersion</tt> * associated with specified <tt>value</tt>. */ public static InterfaceVersion valueOf(byte value) throws IllegalArgumentException { for (InterfaceVersion val : values()) { if (val.value == value) return val; } throw new IllegalArgumentException( "No enum const InterfaceVersion with value " + value); } }
@Override public int hashCode() { final int prime = 31; int result = 1; result = (prime * result) + ((this.password == null) ? 0 : this.password.hashCode()); result = (prime * result) + ((this.systemId == null) ? 0 : this.systemId.hashCode()); result = (prime * result) + ((this.interfaceVersion == null) ? 0 : this.interfaceVersion.hashCode()); return result; }
public BindRequest(Bind bind, GenericServerResponseHandler responseHandler) { this(bind.getSequenceNumber(), BindType.valueOf(bind.getCommandId()), bind.getSystemId(), bind.getPassword(), bind.getSystemType(), TypeOfNumber.valueOf(bind.getAddrTon()), NumberingPlanIndicator.valueOf(bind.getAddrNpi()), bind.getAddressRange(), InterfaceVersion.valueOf(bind.getInterfaceVersion()), responseHandler); }
public BindRequest(Bind bind, ServerResponseHandler responseHandler) { this(bind.getSequenceNumber(), BindType.valueOf(bind.getCommandId()), bind.getSystemId(), bind.getPassword(), bind.getSystemType(), TypeOfNumber.valueOf(bind.getAddrTon()), NumberingPlanIndicator.valueOf(bind.getAddrNpi()), bind.getAddressRange(), InterfaceVersion.valueOf(bind.getInterfaceVersion()), responseHandler); }
public Sc_interface_version(InterfaceVersion interface_version) { this(interface_version.value()); }
/** * Get the <tt>InterfaceVersion</tt> by specified value. * * @param value is the value associated by the enum constant. * @return the enum const assiciated with specified <tt>value</tt>. * @throws IllegalArgumentException if there is <tt>InterfaceVersion</tt> * associated with specified <tt>value</tt>. */ public static InterfaceVersion valueOf(byte value) throws IllegalArgumentException { for (InterfaceVersion val : values()) { if (val.value == value) return val; } throw new IllegalArgumentException( "No enum const InterfaceVersion with value " + value); } }
@Override public int hashCode() { final int prime = 31; int result = 1; result = (prime * result) + ((this.password == null) ? 0 : this.password.hashCode()); result = (prime * result) + ((this.systemId == null) ? 0 : this.systemId.hashCode()); result = (prime * result) + ((this.interfaceVersion == null) ? 0 : this.interfaceVersion.hashCode()); return result; }
public byte[] sendBindResp(OutputStream os, int commandId, int sequenceNumber, String systemId, InterfaceVersion interfaceVersion) throws PDUStringException, IOException { OptionalParameter[] p; if(interfaceVersion != null) { OptionalParameter interfaceVersionParam = new OptionalParameter.Byte(Tag.SC_INTERFACE_VERSION, interfaceVersion.value()); p = new OptionalParameter[] {interfaceVersionParam}; } else { p = new OptionalParameter[] {}; } byte[] b = pduComposer.bindResp(commandId, sequenceNumber, systemId, p); writeAndFlush(os, b); return b; }
/** * Get the <tt>InterfaceVersion</tt> by specified value. * * @param value is the value associated by the enum constant. * @return the enum const assiciated with specified <tt>value</tt>. * @throws IllegalArgumentException if there is <tt>InterfaceVersion</tt> * associated with specified <tt>value</tt>. */ public static InterfaceVersion valueOf(byte value) throws IllegalArgumentException { for (InterfaceVersion val : values()) { if (val.value == value) return val; } throw new IllegalArgumentException( "No enum const InterfaceVersion with value " + value); } }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((addrNpi == null) ? 0 : addrNpi.hashCode()); result = prime * result + ((addrTon == null) ? 0 : addrTon.hashCode()); result = prime * result + ((addressRange == null) ? 0 : addressRange.hashCode()); result = prime * result + ((bindType == null) ? 0 : bindType.hashCode()); result = prime * result + ((password == null) ? 0 : password.hashCode()); result = prime * result + ((systemId == null) ? 0 : systemId.hashCode()); result = prime * result + ((systemType == null) ? 0 : systemType.hashCode()); result = prime * result + ((interfaceVersion == null) ? 0 : interfaceVersion.hashCode()); return result; }
public byte[] sendBindResp(OutputStream os, int commandId, int sequenceNumber, String systemId, InterfaceVersion interfaceVersion) throws PDUStringException, IOException { OptionalParameter p[]; if(interfaceVersion != null) { OptionalParameter interfaceVersionParam = new OptionalParameter.Byte(Tag.SC_INTERFACE_VERSION, interfaceVersion.value()); p = new OptionalParameter[] {interfaceVersionParam}; } else { p = new OptionalParameter[] {}; } byte[] b = pduComposer.bindResp(commandId, sequenceNumber, systemId, p); writeAndFlush(os, b); return b; }
/** * Get the <tt>InterfaceVersion</tt> by specified value. * * @param value is the value associated by the enum constant. * @return the enum const assiciated with specified <tt>value</tt>. * @throws IllegalArgumentException if there is <tt>InterfaceVersion</tt> * associated with specified <tt>value</tt>. */ public static InterfaceVersion valueOf(byte value) throws IllegalArgumentException { for (InterfaceVersion val : values()) { if (val.value == value) return val; } throw new IllegalArgumentException( "No enum const InterfaceVersion with value " + value); } }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((addrNpi == null) ? 0 : addrNpi.hashCode()); result = prime * result + ((addrTon == null) ? 0 : addrTon.hashCode()); result = prime * result + ((addressRange == null) ? 0 : addressRange.hashCode()); result = prime * result + ((bindType == null) ? 0 : bindType.hashCode()); result = prime * result + ((password == null) ? 0 : password.hashCode()); result = prime * result + ((systemId == null) ? 0 : systemId.hashCode()); result = prime * result + ((systemType == null) ? 0 : systemType.hashCode()); result = prime * result + ((interfaceVersion == null) ? 0 : interfaceVersion.hashCode()); return result; }
public byte[] sendBind(OutputStream os, BindType bindType, int sequenceNumber, String systemId, String password, String systemType, InterfaceVersion interfaceVersion, TypeOfNumber addrTon, NumberingPlanIndicator addrNpi, String addressRange) throws PDUStringException, IOException { byte[] b = pduComposer.bind(bindType.commandId(), sequenceNumber, systemId, password, systemType, interfaceVersion.value(), addrTon.value(), addrNpi.value(), addressRange); writeAndFlush(os, b); return b; }
public byte[] sendBind(OutputStream os, BindType bindType, int sequenceNumber, String systemId, String password, String systemType, InterfaceVersion interfaceVersion, TypeOfNumber addrTon, NumberingPlanIndicator addrNpi, String addressRange) throws PDUStringException, IOException { byte[] b = pduComposer.bind(bindType.commandId(), sequenceNumber, systemId, password, systemType, interfaceVersion.value(), addrTon.value(), addrNpi.value(), addressRange); writeAndFlush(os, b); return b; }
public byte[] sendBind(OutputStream os, BindType bindType, int sequenceNumber, String systemId, String password, String systemType, InterfaceVersion interfaceVersion, TypeOfNumber addrTon, NumberingPlanIndicator addrNpi, String addressRange) throws PDUStringException, IOException { byte[] b = pduComposer.bind(bindType.commandId(), sequenceNumber, systemId, password, systemType, interfaceVersion.value(), addrTon.value(), addrNpi.value(), addressRange); writeAndFlush(os, b); return b; }
public byte[] sendBind(OutputStream os, BindType bindType, int sequenceNumber, String systemId, String password, String systemType, InterfaceVersion interfaceVersion, TypeOfNumber addrTon, NumberingPlanIndicator addrNpi, String addressRange) throws PDUStringException, IOException { byte[] b = pduComposer.bind(bindType.commandId(), sequenceNumber, systemId, password, systemType, interfaceVersion.value(), addrTon.value(), addrNpi.value(), addressRange); writeAndFlush(os, b); return b; }