public class AsymmetricRelation extends BasedRelation
Relation.Property
Modifier and Type | Field and Description |
---|---|
(package private) InverseRelation |
inverseRelation |
assignable, base, domConstraint, ranConstraint
name, visible
Constructor and Description |
---|
AsymmetricRelation(String name,
Ontology ontology,
ConcreteRelation base,
boolean assignable,
Constraint domConstraint,
Constraint ranConstraint) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasProperty(Relation.Property property) |
Set<Type> |
relatedTo(Type domain,
ConcreteRelation topOfStack) |
protected Maplet |
relatedTo(Type subject,
Type object,
ConcreteRelation topOfStack)
If this relation is holds in both forward and backward direction then
we must disambiguate using the USES relation if there is one.
|
String |
toStringOptions() |
add, getBaseName, getUses, isAssignable, isBasedOn, remove, setVisible, toString, toStringComment
compareTo, getName, getOntology, getRelativeName, isMark, isVisible, relatedTo, relatedTo, relatedToX, setMark, setName
InverseRelation inverseRelation
public AsymmetricRelation(String name, Ontology ontology, ConcreteRelation base, boolean assignable, Constraint domConstraint, Constraint ranConstraint) throws IllegalOperationException
name
- IllegalOperationException
protected Maplet relatedTo(Type subject, Type object, ConcreteRelation topOfStack)
relatedTo
in class ConcreteRelation
ConcreteRelation.relatedTo(casa.ontology.Type, casa.ontology.Type, casa.ontology.v3.ConcreteRelation)
public Set<Type> relatedTo(Type domain, ConcreteRelation topOfStack)
relatedTo
in class ConcreteRelation
public boolean hasProperty(Relation.Property property)
hasProperty
in interface Relation
hasProperty
in class ConcreteRelation
public String toStringOptions()
toStringOptions
in class ConcreteRelation