com.tibco.rta
Interface Fact

All Superinterfaces:
java.io.Serializable

public interface Fact
extends java.io.Serializable

A Fact is an instance of the schema attributes. A fact could trigger one or more metric computations Facts will be submitted by the client API to the metric server. The server will perform metric calculation on the facts, as defined in the model. The dimensions will be aggregated as per the dimension hierarchy defined in the model


Field Summary
static java.lang.String ASSET_NAME
          For an attribute by this name in the fact, its value represents the name of the asset.
static java.lang.String ASSET_STATUS
          For an attribute by this name, in the fact, its value represents the status/state of the asset.
 
Method Summary
 void clear()
          Clear attributes of this fact.
 java.lang.Object getAttribute(java.lang.String attrName)
          Gets the attribute value.
 java.util.Collection<java.lang.String> getAttributeNames()
          Get a list of attribute names defined for this fact.
 Key getKey()
          Get its key
 RtaSchema getOwnerSchema()
          Return the owner RtaSchema associated with this fact.
 void setAttribute(java.lang.String attrName, java.lang.Object value)
          Sets the attribute value.
 void setAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
          Sets attributes in bulk.
 

Field Detail

ASSET_NAME

static final java.lang.String ASSET_NAME
For an attribute by this name in the fact, its value represents the name of the asset.


ASSET_STATUS

static final java.lang.String ASSET_STATUS
For an attribute by this name, in the fact, its value represents the status/state of the asset.

Method Detail

getKey

Key getKey()
Get its key

Returns:
Please refer
Key

setAttribute

void setAttribute(java.lang.String attrName,
                  java.lang.Object value)
                  throws UndefinedSchemaElementException,
                         DataTypeMismatchException
Sets the attribute value. The name of attribute should be valid, as defined in the schema.

Parameters:
attrName - the attribute name
value - the value depending on the attribute's allowable DataType
Throws:
UndefinedSchemaElementException
DataTypeMismatchException

setAttributes

void setAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
                   throws UndefinedSchemaElementException,
                          DataTypeMismatchException
Sets attributes in bulk. The name of attribute should be valid, as defined in the schema.

Throws:
UndefinedSchemaElementException
DataTypeMismatchException

getAttribute

java.lang.Object getAttribute(java.lang.String attrName)
Gets the attribute value.

Parameters:
attrName - the name to be used as key to get its value
Returns:
the dimension value

getAttributeNames

java.util.Collection<java.lang.String> getAttributeNames()
Get a list of attribute names defined for this fact.

Returns:
a set

clear

void clear()
Clear attributes of this fact.


getOwnerSchema

RtaSchema getOwnerSchema()
Return the owner RtaSchema associated with this fact.

Returns:
schema


Copyright © 2000-2014 TIBCO Inc. All Rights Reserved.