Skip to main content

endpoint_occurrence

Function endpoint_occurrence 

Source
pub fn endpoint_occurrence(address: &str) -> (&str, &str)
Expand description

The OCCURRENCE CHAIN an endpoint address is placed under, and the part-local address inside it: ACOMP7:ACOMP1:J1.VCC reads as ("ACOMP7:ACOMP1", "J1.VCC"), and a document’s OWN point J1.VCC as ("", "J1.VCC").

Read from the right, not with crate::split_component_namespace: a port and a point name may not contain : ([ports::RESERVED]), so everything before the LAST : is the chain whatever the occurrence ids are spelled like. A WAYPOINT id, which is an address belonging to no port, splits the same way (ACOMP1:WP3 is unit WP3 of ACOMP1).