1 /*******************************************************************************
2 * Copyright (c) 2015, 2016 EfficiOS Inc., Alexandre Montplaisir
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
.types
;
12 import org
.eclipse
.jdt
.annotation
.Nullable
;
17 * @author Alexandre Montplaisir
19 public class LamiIRQ
extends LamiData
{
31 private final Type fType
;
32 private final int fNumber
;
33 private final @Nullable String fName
;
43 * IRQ name, null if not available
45 public LamiIRQ(Type irqType
, int nb
, @Nullable String name
) {
52 * Get this IRQ's name. May be null if unavailable.
54 * @return The IRQ name
56 public @Nullable String
getName() {
63 * @return The IRQ type
65 public Type
getType() {
70 * Get this IRQ's number.
72 * @return The IRQ number
74 public int getNumber() {
79 public @Nullable String
toString() {
80 StringBuilder sb
= new StringBuilder();
83 sb
.append(Messages
.LamiIRQ_SoftIRQ
).append(' ');
87 sb
.append(Messages
.LamiIRQ_HardwareIRQ
).append(' ');
91 sb
.append(String
.valueOf(fNumber
));
94 sb
.append(" (" + fName
+ ')'); //$NON-NLS-1$
This page took 0.033023 seconds and 6 git commands to generate.