All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gov.nasa.worldwind.retrieve.Progress Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (C) 2012 United States Government as represented by the Administrator of the
 * National Aeronautics and Space Administration.
 * All Rights Reserved.
 */
package gov.nasa.worldwind.retrieve;

/**
 * Stores progress information.
 *
 * @author Patrick Murris
 * @version $Id: Progress.java 1171 2013-02-11 21:45:02Z dcollins $
 */
public class Progress
{
    private long startTime;         // from System.currentTimeMillis
    private long lastUpdateTime;    // from System.currentTimeMillis
    private long totalSize;
    private long currentSize;
    private long totalCount;
    private long currentCount;

    public Progress()
    {
        this.startTime = System.currentTimeMillis();
    }

    public long getStartTime()
    {
        return this.startTime;
    }

    public void setStartTime(long time)
    {
        this.startTime = time;
    }

    public long getLastUpdateTime()
    {
        return this.lastUpdateTime;
    }

    public void setLastUpdateTime(long time)
    {
        this.lastUpdateTime = time;
    }

    public long getTotalSize()
    {
        return this.totalSize;
    }

    public void setTotalSize(long size)
    {
        this.totalSize = size;
    }

    public long getCurrentSize()
    {
        return this.currentSize;
    }

    public void setCurrentSize(long size)
    {
        this.currentSize = size;
    }

    public long getTotalCount()
    {
        return this.totalCount;
    }

    public void setTotalCount(long count)
    {
        this.totalCount = count;
    }

    public long getCurrentCount()
    {
        return this.currentCount;
    }

    public void setCurrentCount(long count)
    {
        this.currentCount = count;
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy