1 /*******************************************************************************
2 * Copyright (c) 2016 EfficiOS Inc., Philippe Proulx
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
.core
.aspect
;
12 import java
.util
.Comparator
;
14 import org
.eclipse
.jdt
.annotation
.Nullable
;
15 import org
.eclipse
.tracecompass
.internal
.provisional
.analysis
.lami
.core
.module
.LamiTableEntry
;
16 import org
.eclipse
.tracecompass
.internal
.provisional
.analysis
.lami
.core
.types
.LamiData
;
17 import org
.eclipse
.tracecompass
.internal
.provisional
.analysis
.lami
.core
.types
.LamiIRQ
;
20 * Aspect for the IRQ handler names.
22 * This resolves the interrupt handler name, (like i915) from a given table
25 * @author Philippe Proulx
27 public class LamiIRQNameAspect
extends LamiTableEntryAspect
{
29 private final int fColIndex
;
39 public LamiIRQNameAspect(String colName
, int colIndex
) {
40 super(colName
+ " (" + Messages
.LamiAspect_Name
+')', null); //$NON-NLS-1$
45 public boolean isContinuous() {
50 public boolean isTimeStamp() {
55 public @Nullable String
resolveString(LamiTableEntry entry
) {
56 LamiData data
= entry
.getValue(fColIndex
);
57 if (data
instanceof LamiIRQ
) {
58 return ((LamiIRQ
) data
).getName();
60 /* Could be null, unknown, etc. */
61 return data
.toString();
65 public @Nullable Double
resolveDouble(LamiTableEntry entry
) {
70 public Comparator
<LamiTableEntry
> getComparator() {
72 String s1
= resolveString(o1
);
73 String s2
= resolveString(o2
);
75 if (s1
== null || s2
== null) {
79 return s1
.compareTo(s2
);
This page took 0.040939 seconds and 5 git commands to generate.