~indicator-multiload/indicator-multiload/trunk

« back to all changes in this revision

Viewing changes to src/data.vala

  • Committer: Michael Hofmann
  • Date: 2011-08-15 17:12:11 UTC
  • mfrom: (32.1.13 expressions)
  • Revision ID: mh21@piware.de-20110815171211-y2l29z2yan40g3cg
Merge expression branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/******************************************************************************
 
2
 * Copyright (C) 2011  Michael Hofmann <mh21@piware.de>                       *
 
3
 *                                                                            *
 
4
 * This program is free software; you can redistribute it and/or modify       *
 
5
 * it under the terms of the GNU General Public License as published by       *
 
6
 * the Free Software Foundation; either version 3 of the License, or          *
 
7
 * (at your option) any later version.                                        *
 
8
 *                                                                            *
 
9
 * This program is distributed in the hope that it will be useful,            *
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of             *
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *
 
12
 * GNU General Public License for more details.                               *
 
13
 *                                                                            *
 
14
 * You should have received a copy of the GNU General Public License along    *
 
15
 * with this program; if not, write to the Free Software Foundation, Inc.,    *
 
16
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.                *
 
17
 ******************************************************************************/
 
18
 
 
19
public abstract class Data : GLib.Object {
 
20
    public string id { get; private set; }
 
21
 
 
22
    public string[] keys { get; private set; }
 
23
    public double[] values { get; protected set; }
 
24
 
 
25
    public Data(string id, string[] keys) {
 
26
        this.id = id;
 
27
        this.keys = keys;
 
28
        this.values = new double[keys.length];
 
29
    }
 
30
 
 
31
    public abstract void update();
 
32
}