Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Project

Indexable

[key: string]: any

Index

Constructors

constructor

Properties

counts

counts: object

Type declaration

  • [index: string]: number

createdBy

createdBy: string

createdOn

createdOn: Date

Private deviceMap

deviceMap: DeviceDictionary

devices

devices: Array<Device>

gid

gid: string

id

id: string

name

name: string

Optional org

org: Org

orgSlug

orgSlug: string

overlay

projTemplateMap

projTemplateMap: ProjectTemplateDictionary

Optional projectTemplate

projectTemplate: undefined | string

properties

properties: Array<Property>

propertyMap

propertyMap: PropertyDictionary

rawData

rawData: any

sensorGraphMap

sensorGraphMap: SensorGraphDictionary

sensorGraphs

sensorGraphs: Array<SensorGraph>

slug

slug: string

Private streamMap

streamMap: StreamDictionary

streams

streams: Array<Stream>

template

template: string

variableMap

variableMap: VariableDictionary

variables

variables: Array<Variable>

Methods

addDevices

  • addDevices(devices: Array<Device>): void

addProjectTemplates

addProperties

  • addProperties(properties: Array<Property>): void

addSensorGraph

addSensorGraphs

addStream

  • addStream(stream: Stream): void

addStreams

  • addStreams(streams: Array<Stream>): void

addVariable

addVariables

  • addVariables(variables: Array<Variable>): void

applyOverlay

computeInputValue

  • computeInputValue(stream: Stream, rawValue: number, mdo?: Mdo): number

computeOutputValue

  • computeOutputValue(stream: Stream, value: number): number

computeValue

deviceModified

  • deviceModified(slug: string): boolean

getDevice

  • getDevice(slug: string, unmodified?: undefined | true | false): Device | null

getInputUnits

getOutputUnits

getProjectTemplate

getProperty

getSensorGraph

getSensorGraphSlugs

  • getSensorGraphSlugs(): string[]

getStream

  • getStream(slug: string, unmodified?: undefined | true | false): Stream | null

getVariable

  • getVariable(slug: string): Variable | undefined

getVariableForStream

  • getVariableForStream(slug: string): Variable | undefined

hasDevice

  • hasDevice(slug: string): boolean

processDataPoint

  • description

    Given a DataPoint with a .rawValue, compute value using the stream.mdo and stream.inputUnit Then compute outValue using the stream.outputUnit Finally, DisplayValue represents the string version of outValue

    Parameters

    • stream: Stream

      is the stream to use to get input/output units

    • dataPoint: DataPoint

      should have rawValue defined

    Returns DataPoint

    Modified dataPoint

serialize

  • serialize(): any

streamsForDevice

  • streamsForDevice(deviceSlug: string, filterByIOInfo?: boolean): object
  • Parameters

    • deviceSlug: string
    • Default value filterByIOInfo: boolean = false

    Returns object

Private toJson

  • toJson(): any

Static Unserialize

  • Unserialize(obj: object): Project

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc