trace/tracebuilder/com.nokia.tracebuilder/src/com/nokia/tracebuilder/project/GroupNameHandlerOSTv1.java
/*
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
* Default names for OSTv1 trace groups
*
*/
package com.nokia.tracebuilder.project;
/**
* Default names for trace groups
*
*/
public final class GroupNameHandlerOSTv1 extends GroupNameHandlerBase {
/**
* Default names for OSTv1 groups.
*/
private static String[] DEFAULT_GROUPS = { "", //$NON-NLS-1$
"TRACE_FATAL", //$NON-NLS-1$
"TRACE_IMPORTANT", //$NON-NLS-1$
"TRACE_NORMAL", //$NON-NLS-1$
"TRACE_PERFORMANCE", //$NON-NLS-1$
"TRACE_STATE", //$NON-NLS-1$
"TRACE_API", //$NON-NLS-1$
"TRACE_FLOW", //$NON-NLS-1$
"TRACE_DETAILED", //$NON-NLS-1$
"TRACE_DEBUG" //$NON-NLS-1$
};
/**
* Start of OSTv1 user-defined groups
*/
private static int USER_GROUP_ID_FIRST = 64; // CodForChk_Dis_Magic
/**
* End of OSTv1 user-defined groups
*/
private static int USER_GROUP_ID_LAST = 65535; // CodForChk_Dis_Magic
/**
* Max group ID
*/
public static final int MAX_GROUP_ID = 65535; // CodForChk_Dis_Magic
/**
* Index of OSTv1 state group
*/
private static int STATE_GROUP_ID_INDEX = 5; // CodForChk_Dis_Magic
/**
* Index of OSTv1 performance group
*/
private static int PERFORMANCE_GROUP_ID_INDEX = 4; // CodForChk_Dis_Magic
/**
* Index of OSTv1 flow group
*/
private static int FLOW_GROUP_ID_INDEX = 7; // CodForChk_Dis_Magic
/**
* Index of OSTv1 normal group
*/
private static int NORMAL_GROUP_ID_INDEX = 3; // CodForChk_Dis_Magic
/**
* OSTv1 version text
*/
private static final String OST_VERSION_1_X_X = "1.x.x"; //$NON-NLS-1$
/**
* Constructor
*/
public GroupNameHandlerOSTv1() {
defaultGroups = DEFAULT_GROUPS;
userGroupIdFirst = USER_GROUP_ID_FIRST;
userGroupIdLast = USER_GROUP_ID_LAST;
stateGroupIdIndex = STATE_GROUP_ID_INDEX;
performanceGroupIdIndex = PERFORMANCE_GROUP_ID_INDEX;
flowGroupIdIndex = FLOW_GROUP_ID_INDEX;
normalGroupIdIndex = NORMAL_GROUP_ID_INDEX;
usedOstVersion = OST_VERSION_1_X_X;
maxGroupId = MAX_GROUP_ID;
}
}