public class VariableBinding extends Object
Title: Variable Binding
Description: Keeps variable bindings. Data and Individual variables are kept in seperate name spaces.
Copyright: Copyright (c) 2007
Company: Clark & Parsia, LLC.
| Constructor and Description |
|---|
VariableBinding(ABox abox) |
VariableBinding(VariableBinding binding)
Shallow copies the binding maps.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(AtomDVariable key) |
boolean |
containsKey(AtomIVariable key) |
Set<Map.Entry<AtomDVariable,Literal>> |
dataEntrySet() |
Set<Map.Entry<? extends AtomVariable,? extends Node>> |
entrySet() |
boolean |
equals(Object other) |
Literal |
get(AtomDObject key)
If the key is a variable, return the node associated with it in
the map.
|
Individual |
get(AtomIObject key)
If the key is a variable, return the individual associated with it in
the map.
|
ABox |
getABox() |
int |
hashCode() |
Literal |
set(AtomDObject key,
Literal value)
If the key is a data variable, set the value.
|
Literal |
set(AtomDVariable key,
aterm.ATermAppl value) |
Individual |
set(AtomIObject key,
Individual value)
If the key is an instance variable, set the value.
|
Individual |
set(AtomIVariable key,
aterm.ATermAppl value) |
String |
toString() |
public VariableBinding(ABox abox)
public VariableBinding(VariableBinding binding)
public boolean containsKey(AtomDVariable key)
public boolean containsKey(AtomIVariable key)
public Set<Map.Entry<AtomDVariable,Literal>> dataEntrySet()
public Set<Map.Entry<? extends AtomVariable,? extends Node>> entrySet()
public Literal get(AtomDObject key)
public Individual get(AtomIObject key)
public ABox getABox()
public Literal set(AtomDObject key, Literal value)
public Literal set(AtomDVariable key, aterm.ATermAppl value)
public Individual set(AtomIObject key, Individual value)
public Individual set(AtomIVariable key, aterm.ATermAppl value)
Copyright © 2019. All rights reserved.