capturegraph.procedures.nodes.automatic.constant
#
Constant Value Procedures#
Constant procedures provide fixed data values for use in workflows. These supply literal values that don't change during execution, useful for configuration, thresholds, defaults, and reference data.
Example
from capturegraph.procedures.nodes.automatic import (
ConstantBool, ConstantNumber, ConstantLocation
)
# Set a threshold for distance checking
threshold = ConstantNumber(value=100)
# Provide a default setting
use_raw = ConstantBool(value=False)
# Define a fixed target location
office = ConstantLocation(latitude=42.445, longitude=-76.480)
ConstantBool
#
Provides a constant boolean value for use in procedures.
Attributes:
| Name | Type | Description |
|---|---|---|
value |
bool
|
The boolean value to provide. |
Example
Source code in capturegraph-lib/capturegraph/procedures/nodes/automatic/constant.py
ConstantNumber
#
Provides a constant numeric value for use in procedures.
Attributes:
| Name | Type | Description |
|---|---|---|
value |
int | float
|
The numeric value to provide. |
Example
Source code in capturegraph-lib/capturegraph/procedures/nodes/automatic/constant.py
ConstantString
#
Provides a constant text value for use in procedures.
Attributes:
| Name | Type | Description |
|---|---|---|
value |
str
|
The string value to provide. |
Source code in capturegraph-lib/capturegraph/procedures/nodes/automatic/constant.py
ConstantLocation
#
Provides a constant geographic location for use in procedures.
Attributes:
| Name | Type | Description |
|---|---|---|
latitude |
int | float
|
Latitude in decimal degrees. |
longitude |
int | float
|
Longitude in decimal degrees. |
altitude |
int | float
|
Altitude in meters above sea level (default: 0.0). |
Example
Source code in capturegraph-lib/capturegraph/procedures/nodes/automatic/constant.py
ConstantTimeInterval
#
Provides a constant time duration for use in procedures.
Returns the interval as a number in seconds.
Attributes:
| Name | Type | Description |
|---|---|---|
seconds |
int | float
|
Duration in seconds. |