/*******************************************************************************
* Copyright (c) 2012-2015 INRIA.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Damien Dosimont <damien.dosimont@imag.fr>
* Youenn Corre <youenn.corret@inria.fr>
******************************************************************************/
package fr.inria.soctrace.tools.ocelotl.core.parameters;
import org.eclipse.draw2d.ColorConstants;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Color;
import fr.inria.soctrace.tools.ocelotl.core.constants.OcelotlConstants.DatacachePolicy;
import fr.inria.soctrace.tools.ocelotl.core.constants.OcelotlConstants.ParameterPPolicy;
/*
* Class for the constants defining the default parameters in Ocelotl
*/
public class OcelotlDefaultParameterConstants {
/**
* Precision Threshold
*/
public static final double Threshold = 0.001;
/**
* Starting timestamp
*/
public static final long TimestampStart = 0;
/**
* Ending timestamp
*/
public static final long TimestampEnd = 1;
/**
* Should the quality be normalized ?
*/
public static final boolean Normalize = false;
/**
* Should the curves show increasing quality ?
*/
public static final boolean IncreasingQualities = true;
/**
* Number of time slices
*/
public static final int TimeSliceNumber = 100;
/**
* Minimal Number of timeslices
*/
public static final int minTimeslice = 2;
/**
* Minimal Number of timeslices
*/
public static final int maxTimeslice = 10000;
/**
* Gain/Loss ratio
*/
public static final double RunParameter = 1.0;
/**
* Number of event producer per query (0 = all)
*/
public static final int EventProducersPerQuery = 0;
/**
* Is the cache activated by default
*/
public static final boolean DEFAULT_DATA_CACHE_ACTIVATION = true;
public static final boolean DEFAULT_DICHO_CACHE_ACTIVATION = true;
/**
* Default cache policy
*/
public static final DatacachePolicy DEFAULT_CACHE_POLICY = DatacachePolicy.CACHEPOLICY_FAST;
/**
* Default parameter choice policy
*/
public static final ParameterPPolicy DEFAULT_PARAMETERP_POLICY = ParameterPPolicy.PARAMETERP_STRATEGY_LARGEST_SUM_DIFF;
/**
* Default number of time slices used when generating a cache
*/
public static final int DEFAULT_CACHE_TS_NUMBER = 900;
/**
* Number of threads for computation
*/
public static final int NUMBER_OF_THREADS = 4;
/**
* Aggregation Operator for the overview
*/
public static final String OVERVIEW_AGGREG_OPERATOR = "Temporal Aggregation";
public static final boolean USE_VISUAL_AGGREGATE = true;
/**
* Colors for the overview
*/
public static final Color OVERVIEW_DISPLAY_FG_COLOR = ColorConstants.black;
public static final Color OVERVIEW_DISPLAY_BG_COLOR = ColorConstants.red;
public static final int OVERVIEW_DISPLAY_ALPHA = 110;
public static final Color OVERVIEW_SELECT_FG_COLOR = ColorConstants.white;
public static final Color OVERVIEW_SELECT_BG_COLOR = ColorConstants.black;
public static final int OVERVIEW_SELECT_ALPHA = 110;
/**
* Colors for the main selection
*/
public static final Color MAIN_DISPLAY_FG_COLOR = ColorConstants.black;
public static final Color MAIN_DISPLAY_BG_COLOR = ColorConstants.black;
public static final int MAIN_DISPLAY_ALPHA = 120;
public static final Color MAIN_SELECT_FG_COLOR = ColorConstants.darkBlue;
public static final Color MAIN_SELECT_BG_COLOR = ColorConstants.darkBlue;
public static final int MAIN_SELECT_ALPHA = 120;
public static final int SORT_TABLE_DEFAULT_COLUMN = 2;
public static final int SORT_TABLE_DEFAULT_ORDER = SWT.DOWN;
/*
* Is the overview enable
*/
public static final boolean OVERVIEW_ENABLE = true;
public static final boolean AGGREGATE_LEAVES = false;
public static final int MAX_NUMBER_OF_LEAVES = 10000;
public static final boolean OVERVIEW_AGGREGATE_LEAVES = false;
public static final int OVERVIEW_MAX_NUMBER_OF_LEAVES = 100;
/**
* Number of events loaded by thread
*/
public static final int EVENTS_PER_THREAD = 10000;
public static final int MIN_EVENTS_PER_THREAD = 100;
public static final int MAX_EVENTS_PER_THREAD = 10000000;
public static final int MIN_NUMBER_OF_THREAD = 1;
public static final int MAX_NUMBER_OF_THREAD = 1000000;
public static final int MIN_NUMBER_OF_AGGLEAVES = 10;
public static final int MAX_NUMBER_OF_AGGLEAVES = 100000000;
public static final int MIN_EVENT_PRODUCERS_PER_QUERY = 0;
public static final int MAX_EVENT_PRODUCERS_PER_QUERY = 1000000;
public static final int SNAPSHOT_DEFAULT_X_RESOLUTION = 1920;
public static final int SNAPSHOT_DEFAULT_Y_RESOLUTION = 1080;
public static final int YAXIS_DEFAULT_X_RESOLUTION = 100;
public static final int XAXIS_DEFAULT_Y_RESOLUTION = 100;
public static final int QUALCURVE_DEFAULT_X_RESOLUTION = 500;
public static final int QUALCURVE_DEFAULT_Y_RESOLUTION = 500;
}