/** * If the key is a variable, return the _individual associated with it in the map. If the key is a constant, return the corresponding _individual from the * _abox. * * @param key * @return an individual link to the key of the abox */ public Individual get(final AtomIObject key) { final IndividualValueCollector collector = new IndividualValueCollector(); key.accept(collector); return collector.getValue(); }
/** * If the key is an instance variable, set the value. Otherwise, ignore it. * * @param key * @param value * @return the visited individual after acceptation */ public Individual set(final AtomIObject key, final Individual value) { final ValueSettingVisitor visitor = new ValueSettingVisitor(value, null); key.accept(visitor); return visitor.getIndividual(); }
/** * If the key is a variable, return the _individual associated with it in the map. If the key is a constant, return the corresponding _individual from the * _abox. * * @param key * @return an individual link to the key of the abox */ public Individual get(final AtomIObject key) { final IndividualValueCollector collector = new IndividualValueCollector(); key.accept(collector); return collector.getValue(); }
/** * If the key is an instance variable, set the value. Otherwise, ignore it. * * @param key * @param value * @return the visited individual after acceptation */ public Individual set(final AtomIObject key, final Individual value) { final ValueSettingVisitor visitor = new ValueSettingVisitor(value, null); key.accept(visitor); return visitor.getIndividual(); }