edu.swri.swiftvis
Class DataFormula.GroupInformation

java.lang.Object
  extended by edu.swri.swiftvis.DataFormula.GroupInformation
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
DataFormula

public static class DataFormula.GroupInformation
extends java.lang.Object
implements java.io.Serializable

This inner class is intended to represent grouping information for a formula. This allows special values from a group to be more ubiquitously used throughout SWIFTVis. The syntax for this information is {group formula, select0, select1, ...}. If the group formula is not provided, then the first sort formula for the sink will be used. The comma delimited list is boolean expressions. The first element in the group that causes the expression to be true will be the one that is used for the special value with that index. For example, if the input were coming from a binary position file in SWIFT, you could use the group information {v[0],p[0]=-2} to make it so that v'[3] would be the inclination of the second planet.

Author:
Mark Lewis
See Also:
Serialized Form

Field Summary
private  int groupEnd
           
private  DataFormula groupFormula
           
private  int groupStart
           
private  int[] lastSelection
           
private  BooleanFormula[] selector
           
private static long serialVersionUID
           
 
Constructor Summary
DataFormula.GroupInformation(java.lang.String form)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int[] getSpecialArray(DataSink sink, int elem, int[] specialElem)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

groupFormula

private DataFormula groupFormula

selector

private BooleanFormula[] selector

groupStart

private int groupStart

groupEnd

private int groupEnd

lastSelection

private int[] lastSelection

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

DataFormula.GroupInformation

public DataFormula.GroupInformation(java.lang.String form)
Method Detail

getSpecialArray

public int[] getSpecialArray(DataSink sink,
                             int elem,
                             int[] specialElem)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object