Package org.hxzon.util

Examples of org.hxzon.util.Daytime


    public void endAll() {
        DebugUtil.debug("packet num:" + packetNum);
        StatisticsPaintModel model = new StatisticsPaintModel();
        model.setStartTime(startTime);
        if (endTime == null) {
            endTime = new Daytime(lastPcapPacket.getSeconds(), (int) lastPcapPacket.getMicroSeconds());
        }
        model.setEndTime(endTime);
        //packet num
        model.getGooseData().setPacketNumOrig(getGoosePacketNum());
        model.getMmsData().setPacketNumOrig(getMmsPacketNum());
View Full Code Here


    @Override
    public void addPcapPacket(PcapPacket pcapPacket, PcapFile ownerFile) {
        packetNum++;
        lastPcapPacket = pcapPacket;
        if (startTime == null) {
            startTime = new Daytime(pcapPacket.getSeconds(), (int) pcapPacket.getMicroSeconds());
//          startTime = new Daytime(pcapPacket.getSeconds(), 0);
        }
        int index = computeTimespan(pcapPacket.getSeconds(), pcapPacket.getMicroSeconds());
        if (index == -1) {
            return;
View Full Code Here

    private static final long serialVersionUID = 1L;

    public EmptyDatasetPlaceholder() {
        TimeSeriesEx timeSeries = new TimeSeriesEx("");
        Daytime endTime = new Daytime(new Date());
        Daytime startTime = endTime.addMinute(-5);
        timeSeries.add(new Millisecond(startTime.usec / 1000, startTime.second, startTime.minute, startTime.hour, startTime.date, startTime.month, startTime.year), 0);
        timeSeries.add(new Millisecond(endTime.usec / 1000, endTime.second, endTime.minute, endTime.hour, endTime.date, endTime.month, endTime.year), 1000);
        addSeries(timeSeries);
    }
View Full Code Here

        public StatisticsData call() {
            int i = 0;
            DebugTimespend.start("prepare dataset for" + pointData.getName() + " " + timespan + this.hashCode());
            for (int value : values) {
                Daytime tmpTime = startTime.addMillisec(i * timespan);
                Millisecond millis = new Millisecond(tmpTime.usec / 1000, tmpTime.second, tmpTime.minute, tmpTime.hour, tmpTime.date, tmpTime.month, tmpTime.year);
                timeSeries.add(millis, value, false);
                i++;
            }
            DebugTimespend.end("prepare dataset for" + pointData.getName() + " " + timespan + this.hashCode());
View Full Code Here

TOP

Related Classes of org.hxzon.util.Daytime

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.