Elements - bali-nebula/go-component-framework GitHub Wiki

⚠️ This project is still under development and is for reference purposes only. If you are interested in this project or have suggestions on how to improve it feel free to contact us at [email protected].

Overview

An element is a primitive entity that cannot be broken down into smaller parts. All primitive entities including elements are immutable. And, although the value of an element cannot be changed, many elements provide functions that operate on one or more elements to produce a new element.

Click on a specific element type heading below to get design and implementation details for that element type.

Angles

An angle element represents an angular measurement in the range [0..2π). Angle elements support the standard trigonometric operations.

Click here for the Bali representation of angles.

Booleans

A boolean element supports the values of false and true. Boolean elements support the traditional logic operations.

Click here for the Bali representation of booleans.

Durations

A duration element represents a "duration of time" represented using ISO 8601 format.

Click here for the Bali representation of durations.

Moments

A moment element represents a "moment in time" represented using ISO 8601 format and may be parameterized with the location of where the moment in time occurred.

Click here for the Bali representation of moments.

Numbers

A number element supports most types of numbers including integers, reals, imaginary numbers, and even complex numbers. Number elements support the usual mathematical operations.

Click here for the Bali representation of numbers.

Patterns

A pattern element captures a regular expression textual pattern or a composite component template pattern that can be used to match other components.

Click here for the Bali representation of patterns.

Percentages

A percentage element represents the standard concept of a percentage.

Click here for the Bali representation of percentages.

Probabilities

A probability element captures all the real values in the range [0..1]. Probability elements support all of the traditional logic operations.

Click here for the Bali representation of probabilities.

Resources

A resource element represents any uniform resource identifier (URI).

Click here for the Bali representation of resources.