OSID Logo
OSID Specifications
topology package
Version 3.1.0
Interfaceosid.topology.EdgeForm
Implementsosid.OsidRelationshipForm
Implemented Byosid.topology.batch.EdgeBatchForm
Used Byosid.topology.EdgeAdminSession
Description

This is the form for creating and updating Edges.Like all OsidForm objects, various data elements may be set here for use in the create and update methods in the EdgeAdminSession. For each data element that may be set, metadata may be examined to provide display hints or data constraints.

MethodgetDirectionalMetadata
Description

Gets the metadata for a directional edges.

Returnosid.Metadata metadata for the directionality
Compliancemandatory This method must be implemented.
MethodsetDirectional
Description

Sets the directional flag.

Parametersbooleandirection true to set the edge as directional, false to set the edge as non-directional
ErrorsINVALID_ARGUMENT direction is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearDirectional
Description

Removes the directional flag.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetBiDirectionalMetadata
Description

Gets the metadata for an edge direction.

Returnosid.Metadata metadata for the direction
Compliancemandatory This method must be implemented.
MethodsetBiDirectional
Description

Sets the direction.

Parametersbooleandirection true to set the edge as bi-directional, false to set the edge as uni-directional
ErrorsINVALID_ARGUMENT direction is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearBiDirectional
Description

Removes the bi-directional flag.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetCostMetadata
Description

Gets the metadata for an edge cost.

Returnosid.Metadata metadata for the cost
Compliancemandatory This method must be implemented.
MethodsetCost
Description

Sets the edge cost.

Parametersdecimalcost the new cost
ErrorsINVALID_ARGUMENT cost is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearCost
Description

Removes the edge cost.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetDistanceMetadata
Description

Gets the metadata for an edge distance.

Returnosid.Metadata metadata for the distance
Compliancemandatory This method must be implemented.
MethodsetDistance
Description

Sets the distance.

Parametersdecimaldistance the new distance
ErrorsINVALID_ARGUMENT distance is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearDistance
Description

Removes the edge distance.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetEdgeFormRecord
Description

Gets the EdgeFormRecord corresponding to the given edge record Type.

Parametersosid.type.TypeedgeRecordType an edge record type
Returnosid.topology.records.EdgeFormRecord the edge form record
ErrorsNULL_ARGUMENT edgeRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(edgeRecordType) is false
Compliancemandatory This method must be implemented.