org.omwg.ontology
Interface Parameter


public interface Parameter

Defines WSMO parameter of a relation.

Version:
$Revision: 1.15 $Date:
Author:
not attributable, not attributable
See Also:
Relation

Method Summary
 void addType(Type type)
          Adds a new Type as range for this parameter.
 Relation getRelation()
          Returns the Relation to which this parameter is assigned.
 boolean isConstraining()
          Returns the type of this parameter.
 java.util.Set listTypes()
          Returns the list of allowed Type for the current parameter.
 void removeType(Type type)
          Removes a Type for this parameter.
 void setConstraining(boolean constraining)
          Sets the type of this parameter.
 

Method Detail

isConstraining

boolean isConstraining()
Returns the type of this parameter.

Returns:
true (constraining) / false (inferring)

setConstraining

void setConstraining(boolean constraining)
Sets the type of this parameter.

Parameters:
constraining - true (constraining) / false (inferring)

getRelation

Relation getRelation()
Returns the Relation to which this parameter is assigned.

Returns:

addType

void addType(Type type)
Adds a new Type as range for this parameter.

Parameters:
type - the Type to be added
Throws:
InvalidModelException

removeType

void removeType(Type type)
Removes a Type for this parameter.

Parameters:
type - the Type to be removed
Throws:
InvalidModelException

listTypes

java.util.Set listTypes()
Returns the list of allowed Type for the current parameter.

Returns:
Set of Type objects