56
|
1 |
/*
|
|
2 |
* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
* Rule which can be used to create copies of new traces
|
|
17 |
*
|
|
18 |
*/
|
|
19 |
package com.nokia.tracecompiler.engine.utils;
|
|
20 |
|
|
21 |
import java.util.Iterator;
|
|
22 |
|
|
23 |
import com.nokia.tracecompiler.model.Trace;
|
|
24 |
import com.nokia.tracecompiler.model.TraceObjectRule;
|
|
25 |
|
|
26 |
/**
|
|
27 |
* Rule which can be used to create copies of new traces
|
|
28 |
*
|
|
29 |
*/
|
|
30 |
public interface TraceMultiplierRule extends TraceObjectRule {
|
|
31 |
|
|
32 |
/**
|
|
33 |
* Gets copies of the given trace which is about to be inserted into given
|
|
34 |
* context. The new trace is added first and the the copies will be inserted
|
|
35 |
* after it in the order they are received from the iterator.
|
|
36 |
*
|
|
37 |
* @param trace
|
|
38 |
* the new trace
|
|
39 |
* @return a list of copies
|
|
40 |
*/
|
|
41 |
public Iterator<Trace> createCopies(Trace trace);
|
|
42 |
|
|
43 |
}
|