Skip to content

Commit

Permalink
linux.core: Add interface for segments that have a priority property
Browse files Browse the repository at this point in the history
This commit adds the IPrioritySegment interface. The interface is to be
implemented by segments that have a priority to provide.

[Added] Interface for segments that have priority.

Change-Id: I27bf6482667a90d0209448f26fecea26ae3c1491
Signed-off-by: Hoang Thuan Pham <hoang.pham@calian.ca>
Reviewed-on: https://git.eclipse.org/r/c/tracecompass/org.eclipse.tracecompass/+/204378
Tested-by: Trace Compass Bot <tracecompass-bot@eclipse.org>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
  • Loading branch information
hoangphamEclipse authored and MatthewKhouzam committed Oct 2, 2023
1 parent 815a558 commit 0f25983
Showing 1 changed file with 32 additions and 0 deletions.
@@ -0,0 +1,32 @@
/*******************************************************************************
* Copyright (c) 2023 Ericsson
*
* All rights reserved. This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0 which
* accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/

package org.eclipse.tracecompass.internal.analysis.os.linux.core.segmentstore;

import org.eclipse.tracecompass.segmentstore.core.ISegment;

/**
* Interface to be implemented by segments that have a priority to provide. This
* priority can be used in analyses and outputs to identify segments.
*
* This interface is a qualifier interface for segments. A concrete segment type
* can implement many such qualifier interfaces.
*
* @author Hoang Thuan Pham
*/
public interface IPrioritySegment extends ISegment {
/**
* Get the priority of this segment
*
* @return The priority of this segment
*/
int getPriority();
}

0 comments on commit 0f25983

Please sign in to comment.