analysis.lami: Implementation of LAMI plugins
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.lami.core / src / org / eclipse / tracecompass / internal / provisional / analysis / lami / core / types / LamiRatio.java
CommitLineData
4208b510
AM
1/*******************************************************************************
2 * Copyright (c) 2016 EfficiOS Inc., Philippe Proulx
3 *
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 *******************************************************************************/
9
10package org.eclipse.tracecompass.internal.provisional.analysis.lami.core.types;
11
12import org.eclipse.jdt.annotation.Nullable;
13
14class LamiRatio extends LamiNumber {
15 public LamiRatio(double value) {
16 super(value);
17 }
18
19 @Override
20 public @Nullable String toString() {
21 return String.format("%.2f", getValue() * 100); //$NON-NLS-1$
22 }
23}
This page took 0.02584 seconds and 5 git commands to generate.