Examples of Interval


Examples of org.gephi.data.attributes.type.Interval

            AttributeType staticType = TypeConvertor.getStaticType(column.getType());
            value = staticType.parse((String) value);
        }
        Object sourceVal = attributeRow.getValue(column);
        if (sourceVal != null && sourceVal instanceof DynamicType) {
            value = DynamicUtilities.createDynamicObject(column.getType(), (DynamicType) sourceVal, new Interval(start, end, startOpen, endOpen, value));
        } else if (sourceVal != null && !(sourceVal instanceof DynamicType)) {
            List<Interval> intervals = new ArrayList<Interval>(2);
            intervals.add(new Interval(Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, sourceVal));
            intervals.add(new Interval(start, end, startOpen, endOpen, value));
            value = DynamicUtilities.createDynamicObject(column.getType(), intervals);
        } else {
            value = DynamicUtilities.createDynamicObject(column.getType(), new Interval(start, end, startOpen, endOpen, value));
        }
        attributeRow.setValue(column, value);
    }
View Full Code Here

Examples of org.gephi.data.attributes.type.Interval

            if (value instanceof String && !column.getType().equals(AttributeType.DYNAMIC_STRING)) {
                //Value needs to be parsed
                value = TypeConvertor.getStaticType(column.getType()).parse((String) value);
            }
            //Wrap value in a dynamic type
            value = DynamicUtilities.createDynamicObject(column.getType(), new Interval(Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, value));
        }
        attributeRow.setValue(column, value);
    }
View Full Code Here

Examples of org.gephi.data.attributes.type.Interval

            //Value needs to be parsed
            value = TypeConvertor.getStaticType(column.getType()).parse((String) value);
        }
        Object sourceVal = attributeRow.getValue(column);
        if (sourceVal != null && sourceVal instanceof DynamicType) {
            value = DynamicUtilities.createDynamicObject(column.getType(), (DynamicType) sourceVal, new Interval(start, end, startOpen, endOpen, value));
        } else if (sourceVal != null && !(sourceVal instanceof DynamicType)) {
            List<Interval> intervals = new ArrayList<Interval>(2);
            intervals.add(new Interval(Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, sourceVal));
            intervals.add(new Interval(start, end, startOpen, endOpen, value));
            value = DynamicUtilities.createDynamicObject(column.getType(), intervals);
        } else {
            value = DynamicUtilities.createDynamicObject(column.getType(), new Interval(start, end, startOpen, endOpen, value));
        }
        attributeRow.setValue(column, value);
    }
View Full Code Here

Examples of org.gephi.data.attributes.type.Interval

  }

  @Override
  public Object[] getAttributesValues(Node node, double low, double high) {
    checkLowHigh(low, high);
    return getAttributesValues(node, new Interval(low, high));
  }
View Full Code Here

Examples of org.gephi.data.attributes.type.Interval

  }

  @Override
  public Object[] getAttributesValues(Node node, double low, double high, Estimator[] estimators) {
    checkLowHigh(low, high);
    return getAttributesValues(node, new Interval(low, high), estimators);
  }
View Full Code Here

Examples of org.gephi.data.attributes.type.Interval

  }

  @Override
  public Object[] getAttributesValues(Edge edge, double low, double high) {
    checkLowHigh(low, high);
    return getAttributesValues(edge, new Interval(low, high));
  }
View Full Code Here

Examples of org.gephi.data.attributes.type.Interval

  }

  @Override
  public Object[] getAttributesValues(Edge edge, double low, double high, Estimator[] estimators) {
    checkLowHigh(low, high);
    return getAttributesValues(edge, new Interval(low, high), estimators);
  }
View Full Code Here

Examples of org.gephi.data.attributes.type.Interval

  }

  @Override
  public Graph getSnapshotGraph(double low, double high, Estimator estimator) {
    checkLowHigh(low, high);
    return getSnapshotGraph(new Interval(low, high), Estimator.FIRST);
  }
View Full Code Here

Examples of org.gephi.data.attributes.type.Interval

  }

  @Override
  public Graph getStrongSnapshotGraph(double low, double high) {
    checkLowHigh(low, high);
    return getStrongSnapshotGraph(new Interval(low, high));
  }
View Full Code Here

Examples of org.gephi.data.attributes.type.Interval

            case TIME_INTERVAL: {
                ArrayList<Interval> lin = null;
                if (in != null) {
                    lin = new ArrayList<Interval>();
                    for (Interval interval : in) {
                        lin.add(new Interval(interval.getLow(), interval.getHigh(),
                                interval.isLowExcluded(), interval.isHighExcluded()));
                    }
                }
                ArrayList<Interval> lout = null;
                if (out != null) {
                    lout = new ArrayList<Interval>();
                    for (Interval interval : out) {
                        lout.add(new Interval(interval.getLow(), interval.getHigh(),
                                interval.isLowExcluded(), interval.isHighExcluded()));
                    }
                }
                return new TimeInterval((TimeInterval) source, lin, lout);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.