Java Code Examples for com.google.common.collect.Table.Cell#getValue()

The following examples show how to use com.google.common.collect.Table.Cell#getValue() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TimeSVDModel.java    From jstarcraft-rns with Apache License 2.0 6 votes vote down vote up
/**
 * get the maximum and minimum time stamps in the time matrix
 *
 */
private void getMaxAndMinTimeStamp() {
    minTimestamp = Integer.MAX_VALUE;
    maxTimestamp = Integer.MIN_VALUE;

    for (Cell<Integer, Integer, Integer> cell : instantTabel.cellSet()) {
        int timeStamp = cell.getValue();
        if (timeStamp < minTimestamp) {
            minTimestamp = timeStamp;
        }

        if (timeStamp > maxTimestamp) {
            maxTimestamp = timeStamp;
        }
    }
}
 
Example 2
Source File: IDESolver.java    From JAADAS with GNU General Public License v3.0 6 votes vote down vote up
public void run() {
	int sectionSize = (int) Math.floor(values.length / numThreads) + numThreads;
	for(int i = sectionSize * num; i < Math.min(sectionSize * (num+1),values.length); i++) {
		N n = values[i];
		for(N sP: icfg.getStartPointsOf(icfg.getMethodOf(n))) {					
			Set<Cell<D, D, EdgeFunction<V>>> lookupByTarget;
			lookupByTarget = jumpFn.lookupByTarget(n);
			for(Cell<D, D, EdgeFunction<V>> sourceValTargetValAndFunction : lookupByTarget) {
				D dPrime = sourceValTargetValAndFunction.getRowKey();
				D d = sourceValTargetValAndFunction.getColumnKey();
				EdgeFunction<V> fPrime = sourceValTargetValAndFunction.getValue();
				synchronized (val) {
					setVal(n,d,valueLattice.join(val(n,d),fPrime.computeTarget(val(sP,dPrime))));
				}
				flowFunctionApplicationCount++;
			}
		}
	}
}