References > Creo Schematics 4.0 API Guide > The Component Package > Class Component
  
Class Component
This abstract class represents an artifact that can have ports.
public class Component
extends Artifact
Hierarchical Diagram
Direct Known Subclasses
Block
Fibre
Group
Constructor
public Component()
Methods
getPorts
Returns an iterator or arrays. Each entry in the iterator is a four-element array containing port, index, varindex, and the sys_id of the pseudo-prototype.
public Iterator getPorts()
Throws: RSDException
getPortsVector
Returns a vector of the ports connected to the component.
public Vector getPortsVector()
Throws: RSDException
getConnectedPorts
Returns an iterator of all ports that are internally connected via this component to the seed port in the specified diagram type.
public Iterator getConnectedPorts(Port seed, int diagramType)
Where:
seed—The port, which must belong to this component, from which to trace internal connections.
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 ports that are internally connected via this component to the seed port in the specified diagram type.
public Vector getConnectedPortsVector(Port seed, int diagramType)
Where:
seed—The port, which must belong to this component, from which to trace internal connections.
diagramType—The ID of the diagram type in which to trace connections. Zero indicates all diagram types.
Throws: RSDException
inPrototypeParent
Returns true if one of the blocks ancestors is a prototype.
public boolean inPrototypeParent()
Throws: RSDException
Methods Inherited
The methods inherited from other classes are:
Class
Methods Inherited
rsdesigner.component.Artifact
getContainer, getName, getShapes, getTopLevelContainer
rsdesigner.design.PropertySet
getIntegerProperty, getProperties, getProperty, getRealProperty, getStringProperty, getType
java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait