References > Creo Schematics 4.0 API Guide > The Component Package > Class Port
  
Class Port
This concrete class represents an object to which a connection can be made.
public class Port
extends Artifact
Hierarchical Diagram
Direct Known Subclasses
None
Constructor
public Port()
Methods
getConnectedPorts
Returns an iterator of all the ports that are externally connected to the port.
public Iterator getConnectedPorts(int diagramType)
Where:
diagramType—The ID of the diagram type in which to trace connections. Zero indicates all diagram types.
Throws: RSDException
getConnectedPortsVector
Returns a vector of all the ports that are externally connected to the port.
public Vector getConnectedPortsVector(int diagramType)
Where:
diagramType—The ID of the diagram type in which to trace connections. Zero indicates all diagram types.
Throws: RSDException
traceInternal
Returns an iterator of the ports that are externally connected to a port that is internally connected to the seed port in the specified direction.
public iterator traceInternal(String direction, boolean includeDirect)
Where:
direction—The direction in which the port must be internally connected to the seed port.
includeDirect—If includeDirect is true, then the traceInternal function also returns an iterator of the ports that are externally connected to the seed port.
Throws: RSDException
traceInternalVector
Returns a vector of the ports that are externally connected to a port that is internally connected to the seed port in the specified direction.
public Vector traceInternalVector(String direction, boolean includeDirect)
Where:
direction—The direction in which the port must be internally connected to the seed port.
includeDirect—If the value of includeDirect is true, the traceInternalVector function also returns a vector of the ports that are externally connected to the seed port.
Throws: RSDException
getSegments
Returns the set of segments connected to this port.
public Vector getSegments
Throws: RSDException
Methods Inherited
The methods inherited from other classes are:
Class
Methods Inherited
rsdesigner.component.Artifact
getContainer, getName, gets, getTopLevelContainer
rsdesigner.design.PropertySet
getIntegerProperty, getProperties, getProperty, getRealProperty, getStringProperty, getType
java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait