Package org.hxzon.netprotocol.field

Examples of org.hxzon.netprotocol.field.ProtocolInt31Field


    }

    //----------------------------
    public ProtocolInt31Field fetchPtpVersion() {
        if (_ptpVersion == null) {
            _ptpVersion = new ProtocolInt31Field("ptpVersion", "协议版本", 0, 2, true, this);
        }
        return _ptpVersion;
    }
View Full Code Here


        return _ptpVersion;
    }

    public ProtocolInt31Field fetchNetworkVersion() {
        if (_networkVersion == null) {
            _networkVersion = new ProtocolInt31Field("networkVersion", "网络版本", 2, 2, true, this);
        }
        return _networkVersion;
    }
View Full Code Here

        return _subdomain;
    }

    public ProtocolInt31Field fetchMessageType() {
        if (_messageType == null) {
            _messageType = new ProtocolInt31Field("messageType", "报文类型", 20, 1, true, this) {
                public String getValueAsString() {
                    switch (getValue()) {
                    case 1:
                        return "事件报文";
                    case 2:
View Full Code Here

        return _sequenceId;
    }

    public ProtocolInt31Field fetchControl() {
        if (_control == null) {
            _control = new ProtocolInt31Field("control", "控制", 32, 1, true, this) {
                public String getValueAsString() {
                    return PtpPacket.controlDescription(getValue());
                }
            };
        }
View Full Code Here

        return _control;
    }

    public ProtocolInt31Field fetchReserved() {
        if (_reserved == null) {
            _reserved = new ProtocolInt31Field("reserved", "保留", 33, 1, true, this);
        }
        return _reserved;
    }
View Full Code Here

        return sb.toString();
    }

    public ProtocolInt31Field fetchFlags() {
        if (_flags == null) {
            _flags = new ProtocolInt31Field("flags", "标志", 34, 2, true, this) {
                public String getValueAsString() {
                    return flagsDescription(getValue());
                }
            };
        }
View Full Code Here

        return _flags;
    }

    public ProtocolInt31Field fetchReserved2() {
        if (_reserved2 == null) {
            _reserved2 = new ProtocolInt31Field("reserved2", "保留2", 36, 4, true, this);
        }
        return _reserved2;
    }
View Full Code Here

        return _sync_originTimestamp;
    }

    public ProtocolInt31Field fetchEpochNumber() {
        if (_sync_epochNumber == null) {
            _sync_epochNumber = new ProtocolInt31Field("epochNumber", "epochNumber", 48, 2, true, this);
        }
        return _sync_epochNumber;
    }
View Full Code Here

        return _sync_epochNumber;
    }

    public ProtocolInt31Field fetchCurrentUtcOffset() {
        if (_sync_currentUtcOffset == null) {
            _sync_currentUtcOffset = new ProtocolInt31Field("currentUtcOffset", "currentUtcOffset", 50, 2, true, this);
        }
        return _sync_currentUtcOffset;
    }
View Full Code Here

        return _sync_grandmasterSequenceId;
    }

    public ProtocolInt31Field fetchGrandmasterClockStratum() {
        if (_sync_grandmasterClockStratum == null) {
            _sync_grandmasterClockStratum = new ProtocolInt31Field("grandmasterClockStratum", "grandmasterClockStratum", 67, 1, true, this);//3 byte reserved
        }
        return _sync_grandmasterClockStratum;
    }
View Full Code Here

TOP

Related Classes of org.hxzon.netprotocol.field.ProtocolInt31Field

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.