001: /*
002:
003: * <copyright>
004: *
005: * Copyright 2002-2007 BBNT Solutions, LLC
006: * under sponsorship of the Defense Advanced Research Projects
007: * Agency (DARPA).
008: *
009: * You can redistribute this software and/or modify it under the
010: * terms of the Cougaar Open Source License as published on the
011: * Cougaar Open Source Website (www.cougaar.org).
012: *
013: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
014: * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
015: * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
016: * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
017: * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
018: * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
019: * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
020: * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
021: * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
022: * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
023: * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
024: *
025: * </copyright>
026:
027: */
028:
029: package org.cougaar.qos.qrs;
030:
031: /**
032: * Holds DataScope constants.
033: */
034: public interface Constants {
035: /**
036: * The character used to separate fields of a data key.
037: */
038: public static final String KEY_SEPR = "_";
039:
040: public static final String PATH_SEPR = ":";
041:
042: // Credibility Spectrum: tries to unify many different notions of
043: // credibility into a common metric. The Credibility "Calculus" is
044: // still undefined, but here is the general notion for credibility
045: // values.
046: //
047: // The dimensions of credibility include
048: // Aggregation: Time period over which the observation were made
049: // Staleness: How out-of-date is the data
050: // Source: How was the data collected
051: // Trust or Collector Authority: Can the collector be trusted
052: // Sensitivity: Does a key component of the data have low credibility
053: /**
054: * No source for data. There was an error or nobody was looking for this
055: * data
056: */
057: public static final double NO_CREDIBILITY = 0.0;
058: /**
059: * Compile Time Default was the source for data
060: */
061: public static final double DEFAULT_CREDIBILITY = 0.1;
062: /**
063: * System Level configuration file was the source for data
064: */
065: public static final double SYS_DEFAULT_CREDIBILITY = 0.2;
066: /**
067: * User Level configuration file was the source for data
068: */
069: public static final double USER_DEFAULT_CREDIBILITY = 0.3;
070: /**
071: * System Level Base-Line measurements file was the source for data. This
072: * data is aggregated over Days
073: */
074: public static final double SYS_BASE_CREDIBILITY = 0.4;
075: /**
076: * User Level Base-Line measurements file was the source for data. This data
077: * is aggregated over Days
078: */
079: public static final double USER_BASE_CREDIBILITY = 0.5;
080: /**
081: * A Single Active measurment was source for data. This data is aggregated
082: * over Hours and is not stale
083: */
084: public static final double HOURLY_MEAS_CREDIBILITY = 0.6;
085: /**
086: * A Single Active measurment was source for data. This data is aggregated
087: * over Minutes and is not stale
088: */
089: public static final double MINUTE_MEAS_CREDIBILITY = 0.7;
090: /**
091: * A Single Active measurment was source for data. This data is aggregated
092: * over Seconds and is not stale
093: */
094: public static final double SECOND_MEAS_CREDIBILITY = 0.8;
095: /**
096: * A Multiple Active measurments were a Consistant source for data. This
097: * data is aggregated over Seconds and is not stale
098: */
099: public static final double CONFIRMED_MEAS_CREDIBILITY = 0.9;
100: /**
101: * A higher-level system has declared this datarmation to be true. Mainly
102: * used by debuggers and gods
103: */
104: public static final double ORACLE_CREDIBILITY = 1.0;
105: }
|