private static void addComponentAbstractionDefinitions(
            Instance pairAbstractionInstance, SequentialTemporalPatternDefinition pd,
            Map<Instance, TemporalExtendedPropositionDefinition> extendedParameterCache,
            ProtegeKnowledgeSourceBackend backend)
            throws KnowledgeSourceReadException {
        ConnectionManager cm = backend.getConnectionManager();
        Instance relationInstance = (Instance) cm.getOwnSlotValue(
                pairAbstractionInstance, cm.getSlot("withRelation"));
        if (relationInstance != null) {
            Relation relation = Util.instanceToRelation(relationInstance,
                    cm, backend);
            Instance lhs = (Instance) cm.getOwnSlotValue(relationInstance,
                    cm.getSlot("lhs"));
            assert lhs != null : "lhs cannot be null";
            Instance rhs = (Instance) cm.getOwnSlotValue(relationInstance,
                    cm.getSlot("rhs"));
            assert rhs != null : "rhs cannot be null";
            TemporalExtendedPropositionDefinition lhsDefinition =
                    Util.instanceToTemporalExtendedPropositionDefinition(lhs, 
                    backend);
            extendedParameterCache.put(lhs, lhsDefinition);
            TemporalExtendedPropositionDefinition rhsDefinition =
                    Util.instanceToTemporalExtendedPropositionDefinition(rhs, 
                    backend);
            extendedParameterCache.put(rhs, rhsDefinition);
            pd.setFirstTemporalExtendedPropositionDefinition(lhsDefinition);
            SubsequentTemporalExtendedPropositionDefinition related =
                    new SubsequentTemporalExtendedPropositionDefinition(relation, 
                    rhsDefinition);
            pd.setSubsequentTemporalExtendedPropositionDefinitions(
                    new SubsequentTemporalExtendedPropositionDefinition[]{related});
        }
    }
private static void addComponentAbstractionDefinitions ( Instance pairAbstractionInstance , SequentialTemporalPatternDefinition pd , Map < Instance , TemporalExtendedPropositionDefinition > extendedParameterCache , ProtegeKnowledgeSourceBackend backend ) throws KnowledgeSourceReadException { ConnectionManager cm = backend . getConnectionManager ( ) ; Instance relationInstance = ( Instance ) cm . getOwnSlotValue ( pairAbstractionInstance , cm . getSlot ( "withRelation" ) ) ; if ( relationInstance != null ) { Relation relation = Util . instanceToRelation ( relationInstance , cm , backend ) ; Instance lhs = ( Instance ) cm . getOwnSlotValue ( relationInstance , cm . getSlot ( "lhs" ) ) ; assert lhs != null : "lhs cannot be null" ; Instance rhs = ( Instance ) cm . getOwnSlotValue ( relationInstance , cm . getSlot ( "rhs" ) ) ; assert rhs != null : "rhs cannot be null" ; TemporalExtendedPropositionDefinition lhsDefinition = Util . instanceToTemporalExtendedPropositionDefinition ( lhs , backend ) ; extendedParameterCache . put ( lhs , lhsDefinition ) ; TemporalExtendedPropositionDefinition rhsDefinition = Util . instanceToTemporalExtendedPropositionDefinition ( rhs , backend ) ; extendedParameterCache . put ( rhs , rhsDefinition ) ; pd . setFirstTemporalExtendedPropositionDefinition ( lhsDefinition ) ; SubsequentTemporalExtendedPropositionDefinition related = new SubsequentTemporalExtendedPropositionDefinition ( relation , rhsDefinition ) ; pd . setSubsequentTemporalExtendedPropositionDefinitions ( new SubsequentTemporalExtendedPropositionDefinition [ ] { related } ) ; } }
Adds all of the abstraction definitions for which the given complex
abstraction instance defines a temporal relation to the given complex
abstraction definition.

@param complexAbstractionInstance
a Protege complex abstraction <code>Instance</code>.
@param cad
a PROTEMPA <code>HighLevelAbstractionDefinition</code>
instance.