com.ericsson.tic.vi
Class Data

java.lang.Object
  extended by com.ericsson.tic.vi.Data

public class Data
extends Object

Defines a set of data points.

Version:
1.0 (2008-12-04)
Author:
Sami Matilainen

Field Summary
 Category category
          The category set this data belongs to.
 float[][] colors
          A tuple of color triples which define start and end points in a gradient.
 int dimension
          How many dimension the data has besides Node/Rel x Category.
 int id
          The id of this data.
 float max
          The assumed max value for this data.
private  float maxMinusMin
          max - min
 float min
          The assumed min value for this data.
 String name
          The name of this data.
 NodeType nodeType
          The type of node which this data is tied to.
 String parseName
          The name used to identify this data in the indata.
 int parseStrat
          Determines which parsing strategy to use in Parser.java.
 int set
          The set which this data belongs to.
static int SET_NODES
          Set nodes.
static int SET_REL
          Set relations.
 long[][] timeStamp
          A set of timestamps.
 float[][][] value
          A set of values.
 float[][][] vn
          A set of normalized values.
 
Constructor Summary
Data(int id, String name, String parseName, int set, Category category, int parseStrat, int dimension, NodeType nodeType, float max, float min, float[][] colors)
          Creates a set of data points.
 
Method Summary
 void normalizeValue(int i1, int i2)
          Normalizes the value in value and writes this to vn.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SET_NODES

public static final int SET_NODES
Set nodes. Default set.

See Also:
Constant Field Values

SET_REL

public static final int SET_REL
Set relations.

See Also:
Constant Field Values

id

public int id
The id of this data.


set

public int set
The set which this data belongs to.


dimension

public int dimension
How many dimension the data has besides Node/Rel x Category.


nodeType

public NodeType nodeType
The type of node which this data is tied to. nodeType.id = 0 is reserved for all nodes.


parseStrat

public int parseStrat
Determines which parsing strategy to use in Parser.java.


category

public Category category
The category set this data belongs to.


name

public String name
The name of this data.


max

public float max
The assumed max value for this data.


min

public float min
The assumed min value for this data.


parseName

public String parseName
The name used to identify this data in the indata.


maxMinusMin

private float maxMinusMin
max - min


value

public float[][][] value
A set of values.


timeStamp

public long[][] timeStamp
A set of timestamps.


vn

public float[][][] vn
A set of normalized values.


colors

public float[][] colors
A tuple of color triples which define start and end points in a gradient.

Constructor Detail

Data

public Data(int id,
            String name,
            String parseName,
            int set,
            Category category,
            int parseStrat,
            int dimension,
            NodeType nodeType,
            float max,
            float min,
            float[][] colors)
Creates a set of data points.

Parameters:
id - The id of this data.
name - The name of this data.
parseName - The name used to identify this data in the indata.
set - The set which this data belongs to.
category - The category set this data belongs to.
parseStrat - The parsing strategy (see VI.java and Parser.java)
dimension - How many dimension the data has besides Node/Rel x Category.
nodeType - The type of node which this data is tied to. nodeType.id = 0 is reserved for all nodes.
max - The assumed max value for this data.
min - The assumed min value for this data.
colors - A tuple of color triples which define start and end points in a gradient.
Method Detail

normalizeValue

public void normalizeValue(int i1,
                           int i2)
Normalizes the value in value and writes this to vn.

Parameters:
i1 - Index 1 for value (see fields)
i2 - Index 2 for value (see fields)