SerranoScalarSymbol

public class SerranoScalarSymbol: SerranoGraphSymbol, ScalarSymbol

Implementation of ScalarSymbol

  • Bind to a scalar variable

    Note

    If passed in data‘s type is uncompatible with attribute dataType, no further action will be taken. Since when doing calculation, all data converted to Float.

    Declaration

    Swift

    public func bindData(_ data:DataSymbolSupportedDataType) -> Bool

    Parameters

    data

    data. Should be a scalar variable (Int, ‘Float’ or Double).

    Return Value

    bind result