/** * 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 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(); }
public Individual set(final AtomIVariable key, final ATermAppl value) { final AtomIConstant constant = new AtomIConstant(value); final IndividualValueCollector collector = new IndividualValueCollector(); constant.accept(collector); return set(key, collector.getValue()); }
public Individual set(final AtomIVariable key, final ATermAppl value) { final AtomIConstant constant = new AtomIConstant(value); final IndividualValueCollector collector = new IndividualValueCollector(); constant.accept(collector); return set(key, collector.getValue()); }