class TypeFieldPropertyNode
Public Instance Methods
apply_function(operand)
click to toggle source
# File lib/ast_node.rb, line 292 def apply_function(operand) if @value == "DERIVE" || @value == "COUNTER" # The scaling is because of the minutes/(60*seconds)" #return "scale(nonNegativeDerivative(#{operand}),0.0166666666666667)" if parent.properties[:yMax] return "scaleToSeconds(nonNegativeDerivative(#{operand},#{parent.properties[:yMax]}),1)" else return "scaleToSeconds(nonNegativeDerivative(#{operand}),1)" end end operand end