Custom Constraint Computer¶
The AccessConstraintComputer base class allows you to create custom constraint logic for access computation. Subclass this class and implement the evaluate and name methods to define custom constraints that can be combined with built-in constraints using logical operators.
AccessConstraintComputer ¶
Base class for custom access constraint computers.
Subclass this class and implement the evaluate and name methods to create custom constraint logic that can be applied to access computation.
The evaluate method is called at each time step during access search to determine if the constraint is satisfied. Return True if the constraint is satisfied (access is allowed), False otherwise.
Example
Notes
- The
evaluatemethod receives ECEF coordinates in SI units (meters, m/s) - Return True to allow access, False to reject
- The constraint is checked at each time step during access search
- Custom constraints can be combined with built-in constraints using ConstraintAll/ConstraintAny
Initialize instance.
evaluate method descriptor ¶
Evaluate whether the constraint is satisfied.
Override this method in your subclass to implement custom constraint logic.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
epoch | Epoch | Current evaluation time | required |
satellite_state_ecef | ndarray | Satellite state in ECEF [x,y,z,vx,vy,vz] (meters, m/s) | required |
location_ecef | ndarray or list | Location position in ECEF [x,y,z] (meters) | required |
Returns:
| Name | Type | Description |
|---|---|---|
bool | bool | True if constraint is satisfied (access allowed), False otherwise |