1 /*******************************************************************************
2 * Copyright (c) 2016 EfficiOS Inc., Jonathan Rajotte-Julien
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *******************************************************************************/
10 package org
.eclipse
.tracecompass
.internal
.provisional
.analysis
.lami
.ui
.viewers
;
12 import static org
.eclipse
.tracecompass
.common
.core
.NonNullUtils
.checkNotNull
;
14 import java
.math
.BigDecimal
;
17 * BigDecimal based range representation
19 * @author Jonathan Rajotte-Julien
21 public class LamiGraphRange
{
23 private final BigDecimal fMinimum
;
24 private final BigDecimal fMaximum
;
25 private final BigDecimal fRange
;
31 * The minimum value of the range
33 * The maximum value of the range
35 public LamiGraphRange(BigDecimal minimum
, BigDecimal maximum
) {
38 fRange
= checkNotNull(maximum
.subtract(minimum
));
42 * @return the minimum value of the range
44 public BigDecimal
getMinimum() {
49 * @return the maximum value of the range
51 public BigDecimal
getMaximum() {
56 * @return the range delta
58 public BigDecimal
getDelta() {
This page took 0.032126 seconds and 5 git commands to generate.