public interface RoleType extends Type
RelationType| Modifier and Type | Method and Description |
|---|---|
RoleType |
deletePlaysRole(RoleType roleType)
Removes the RoleType to prevent instances from playing it
|
Collection<Type> |
playedByTypes()
Returns a collection of the Types that can play this RoleType.
|
RoleType |
playsRole(RoleType roleType)
Sets the RoleType which instances of this Type may play.
|
RelationType |
relationType()
Returns the RelationType that this RoleType takes part in.
|
RoleType |
setAbstract(Boolean isAbstract)
Sets the RoleType to be abstract - which prevents it from having any instances.
|
Collection<RoleType> |
subTypes()
Returns the subtypes of this RoleType.
|
RoleType |
superType()
Returns the supertype of this RoleType.
|
RoleType |
superType(RoleType type)
Sets the supertype of this RoleType.
|
getName, getRulesOfConclusion, getRulesOfHypothesis, hasResource, instances, isAbstract, isImplicit, key, playsRolesasEntity, asEntityType, asInstance, asRelation, asRelationType, asResource, asResourceType, asRoleType, asRule, asRuleType, asType, delete, getId, isEntity, isEntityType, isInstance, isRelation, isRelationType, isResource, isResourceType, isRoleType, isRule, isRuleType, isType, typecompareToRoleType setAbstract(Boolean isAbstract)
setAbstract in interface TypeisAbstract - Specifies if the RoleType is to be abstract (true) or not (false).RoleType superType(RoleType type)
type - The supertype of this RoleTypeRoleType playsRole(RoleType roleType)
RoleType deletePlaysRole(RoleType roleType)
deletePlaysRole in interface TyperoleType - The RoleType which the instances of this Type should no longer be allowed to play.RoleType superType()
Collection<RoleType> subTypes()
RelationType relationType()
RelationTypeCollection<Type> playedByTypes()
TypeCopyright © 2016 Grakn Labs Ltd. All rights reserved.