Skip to content

Aimsun Next API Policies (Traffic Management)

Initialize Policies

In C++ and Python

Explanation

Initializes the policies list before a simulation run.

Format
void ANGConnInitPolicies()
Parameters

None.

Output:

None.

Activate an ANG Policy

In C++ and Python

Explanation

Activate a policy defined in ANG.

Format
void ANGConnActivatePolicy( unsigned int objectId )
Parameters
  • objectId: The policy identifier.
Output

None.

Deactivate an ANG Policy

In C++ and Python

Explanation

Deactivate a policy defined in ANG.

Format
void ANGConnDeactivatePolicy( unsigned int objectId )
Parameters
  • objectId: The policy identifier.
Output

None.

Query if ANG Policy is Active

In C++ and Python

Explanation

Check whether a policy defined in ANG is active or not.

Format
void ANGConnIsPolicyActive( unsigned int objectId );
Parameters
  • objectId: The policy identifier.
Output
  • true: Policy activated.
  • false: Policy deactivated.