Liking cljdoc? Tell your friends :D

bacure.coerce.obj


bacnet-object-with-local-deviceclj

(bacnet-object-with-local-device object-map local-device-object)

Add a local device to the map metadata to allow conversion (and automatic object creation) to BACnet.

Add a local device to the map metadata to allow conversion (and
automatic object creation) to BACnet.
sourceraw docstring

determine-property-value-typeclj

(determine-property-value-type object-type property-identifier)

Given an object-type and a property-identifier, return a map with the :type and if it's a :sequence.

Given an object-type and a property-identifier, return a map with
the :type and if it's a :sequence.
sourceraw docstring

encode-propertiesclj

(encode-properties obj-map & remove-keys)

Encode an object map into a sequence of bacnet4j property-values. Remove-keys can be used to remove read-only properties before sending a command.

Encode an object map into a sequence of bacnet4j property-values.
Remove-keys can be used to remove read-only properties before
sending a command.
sourceraw docstring

encode-properties-valuesclj

(encode-properties-values obj-map)

Take an object-map (a map of properties and values) and encode the values (not the properties) into their corresponding bacnet4j type. For example, a clojure number "1" might be encoded into a real, or into an unisgned integer, depending on the object.

Take an object-map (a map of properties and values) and encode the
values (not the properties) into their corresponding bacnet4j type. For
example, a clojure number "1" might be encoded into a real, or
into an unisgned integer, depending on the object.
sourceraw docstring

encode-property-valueclj

(encode-property-value object-type property-identifier value)

Encode the property value depending on what type it should be given the object.

A type can be specified when required (proprietary properties) by using the function `force-type'.

Encode the property value depending on what type it should be given
the object.

A type can be specified when required (proprietary properties) by
using the function `force-type'.
sourceraw docstring

force-typeclj

(force-type value type-keyword)

Associate the value with a specific type. Use only before encoding.

Ex: {:some-property (force-type "some-value" :character-string)}

Associate the value with a specific type. Use only before
encoding.

Ex: {:some-property (force-type "some-value" :character-string)}
sourceraw docstring

get-object-typeclj

(get-object-type obj-map)

Find the object type in an object-map (either from the :object-type, or in the :object-identifier).

Find the object type in an object-map (either from
the :object-type, or in the :object-identifier).
sourceraw docstring

properties-by-optionclj

(properties-by-option object-type option)

Return a list or properties. `option' should be :required, :optional, :sequence or :all.

Return a list or properties. `option' should
be :required, :optional, :sequence or :all.
sourceraw docstring

property-type-definitionsclj

(property-type-definitions object-type)

Given an object type, return the properties it should have, and if they are :required, :optional, or :sequence.

Given an object type, return the properties it should have, and if
they are :required, :optional, or :sequence.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close