Constructor Summary
| Public Constructor | ||
| public | 
       constructor(metricData: object, bid: Bid) Creates an instance of Metric.  | 
    |
Member Summary
| Public Members | ||
| public get | 
      
       | 
    |
| public set | 
      
       | 
    |
| public | 
      
       Reference to the bid that the metric belongs to.  | 
    |
| public get | 
      
       | 
    |
| public get | 
      
       this get was deprecated. Definition ids will become obsolete in planned data structure upgrade. 
        
        Gets the metrics's definition id.  | 
    |
| public get | 
      
       | 
    |
| public set | 
      
       | 
    |
Method Summary
| Public Methods | ||
| public | 
       assess() Assess metric for changes.  | 
    |
| public | 
       bind() Binds the "updated" event for all dependant bid entities.  | 
    |
| public | 
       dependants(): BidEntity[] Gets an array of bid entities that rely on the metric  | 
    |
| public | 
       dependencies(): BidEntity[] Gets an array of bid entities that the metric relies on.  | 
    |
| public | 
       dirty() Flags the metric and corresponding bid as dirty and to be saved.  | 
    |
| public | 
       exportData(alwaysIncludeConfig: boolean): object Exports intermal metric data.  | 
    |
| public | 
       getAssembly(): Assembly | undefined Get the metric assembly if it has one  | 
    |
| public | 
       hasNullDependency(): * Determines if the metric has any null dependencies  | 
    |
| public | 
      
       Determines if metric instance is dirty.  | 
    |
| public | 
       reset() Resets the metric, removing any override value.  | 
    |
| public | 
       setAssembly(assembly: Assembly | string): Assembly Adds the metric to an assembly.  | 
    |
| public | 
       unsetAssembly(): void Removes any assembly reference from the metric.  | 
    |
Inherited Summary
| From class AdvanceEventEmitter | ||
| public | 
      
       Maximum number of events fired for the requester before events stop.  | 
    |
| public | 
      
       | 
    |
| public | 
      
       | 
    |
| public | 
       removeListenerByRequester(eventName: string, requesterId: string) Removes event listeners by event and requesterId.  | 
    |
| From class BidEntity | ||
| public get | 
      
       Determine if the entity is in an assembly  | 
    |
| public get | 
      
       Gets the id of the bid entity.  | 
    |
| public get | 
      
       Gets the bid entity title.  | 
    |
| public set | 
      
       Sets the bid entity title.  | 
    |
| public get | 
      
       Gets the bid entity type.  | 
    |
| public abstract | 
      
       Assesses bid entity.  | 
    |
| public | 
       dependants(): BidEntity[] Gets an array of depndants that rely on the bid entity.  | 
    |
| public | 
       dependencies(): BidEntity[] Gets all the dependencies that the bid entity relies on.  | 
    |
| public | 
       dirty() Flags the bid entity as dirty and to be saved.  | 
    |
| public | 
       exportData(): object Exports the internal data for the bid entity.  | 
    |
| public | 
       hasNullDependency(field: string): boolean Determines if bid entity relies on a null or undefined dependency value  | 
    |
| public | 
       async initSaveChangeLog(originalValue: *, newValue: *, valueType: *, entityProperty: *, metaData: *): *  | 
    |
| public | 
      
       Determines of bid entity is dirty.  | 
    |
| public | 
       pristine() Marks the bid entity as clean.  | 
    |
Public Constructors
Public Members
Public Methods
public assess() source
Assess metric for changes.
Override:
BidEntity#assessEmit:
assessing  | 
        fires event before assessement.  | 
      
assessed  | 
        fires after assessment is complete.  | 
      
updated  | 
        fires only if there has been a change.  | 
      
public dependants(): BidEntity[] source
Gets an array of bid entities that rely on the metric
Override:
BidEntity#dependantspublic dependencies(): BidEntity[] source
Gets an array of bid entities that the metric relies on.
Override:
BidEntity#dependenciespublic dirty() source
Flags the metric and corresponding bid as dirty and to be saved.
Override:
BidEntity#dirtypublic exportData(alwaysIncludeConfig: boolean): object source
Exports intermal metric data.
Override:
BidEntity#exportDataParams:
| Name | Type | Attribute | Description | 
| alwaysIncludeConfig | boolean | 
  | 
      Will include config object in export regardless of changed status.  | 
    
public hasNullDependency(): * source
Determines if the metric has any null dependencies
Override:
BidEntity#hasNullDependencyReturn:
| * |