public boolean isOut(Term instance) { if (instance instanceof IRI) return isOut(factory.createInstance((IRI) instance)); if (instance instanceof UnnumberedAnonymousID) return isOut(factory.createInstance((UnnumberedAnonymousID) instance)); // FIXME? return false; }
public void initializeWithControlState() { Concept controlState = factory.createConcept(factory.createIRI(OASM_NAMESPACE + "controlState")); Instance controlStateInstance = factory.createInstance(factory.createIRI(OASM_NAMESPACE + "cs")); try { controlStateInstance.addConcept(controlState); state.addInstance(controlStateInstance); AttributeValueMolecule avm = leFactory.createAttributeValue( factory.createIRI(OASM_NAMESPACE + "cs"), factory.createIRI(OASM_NAMESPACE + "value"), factory.createIRI(OASM_NAMESPACE + "initial")); add(avm); } catch (SynchronisationException e) { logger.warn("Failure during insertion of control state.", e); } catch (InvalidModelException e) { logger.warn("Failure during insertion of control state.", e); } }