~ubuntu-branches/ubuntu/oneiric/electric/oneiric

« back to all changes in this revision

Viewing changes to com/sun/electric/database/prototype/PortProto.java

  • Committer: Bazaar Package Importer
  • Author(s): Onkar Shinde
  • Date: 2010-01-09 16:26:04 UTC
  • mfrom: (1.1.4 upstream) (3.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100109162604-1ypvmy8ijmlc6oq7
Tags: 8.10-1
* New upstream version.
* debian/control
  - Add libjava3d-java and quilt build dependencies.
  - Update standards version to 3.8.3.
  - Add libjava3d-java as recommends to binary package.
* debian/rules
  - Use quilt patch system instead of simple patchsys.
  - Add java3d related jar files to DEB_JARS.
* debian/patches/*
  - Update as per current upstream source. Convert to quilt.
* debian/ant.properties
  - Do not disable 3D plugin anymore.
  - Use new property to disable compilation of OS X related classes.
* debian/wrappers/electric
  - Add java3d related jar files to runtime classpath.
* debian/README.source
  - Change text to the appropriate one for quilt.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
 * at a higher level in the schematic or layout hierarchy.
49
49
 * The PortProto also has a parent cell, characteristics, and more.
50
50
 */
51
 
public interface PortProto
52
 
{
 
51
public interface PortProto {
 
52
 
53
53
    /** Method to return PortProtoId of this PortProto.
54
54
     * PortProtoId identifies PortProto independently of threads.
55
55
     * @return PortProtoId of this PortProto.
56
56
     */
57
57
    public PortProtoId getId();
58
 
    
59
 
        /**
60
 
         * Method to get the index of this PortProto.
61
 
         * This is a zero-based index of ports on the NodeProto.
62
 
         * @return the index of this PortProto.
63
 
         */
64
 
        public int getPortIndex();
65
 
 
66
 
        /**
67
 
         * Method to return the name key of this PortProto.
68
 
         * @return the Name key of this PortProto.
69
 
         */
70
 
        public Name getNameKey();
71
 
 
72
 
        /**
73
 
         * Method to return the name of this PortProto.
74
 
         * @return the name of this PortProto.
75
 
         */
76
 
        public String getName();
77
 
 
78
 
        /**
79
 
         * Method to return the parent NodeProto of this PortProto.
80
 
         * @return the parent NodeProto of this PortProto.
81
 
         */
82
 
        public NodeProto getParent();
83
 
 
84
 
        /**
85
 
         * Method to return the PortCharacteristic of this PortProto.
86
 
         * @return the PortCharacteristic of this PortProto.
87
 
         */
88
 
        public PortCharacteristic getCharacteristic();
89
 
 
90
 
        /**
91
 
         * Method to determine whether this PortProto is of type Power.
92
 
         * This is determined by either having the proper Characteristic, or by
93
 
         * having the proper name (starting with "vdd", "vcc", "pwr", or "power").
94
 
         * @return true if this PortProto is of type Power.
95
 
         */
96
 
        public boolean isPower();
97
 
 
98
 
        /**
99
 
         * Method to determine whether this PortProto is of type Ground.
100
 
         * This is determined by either having the proper PortCharacteristic, or by
101
 
         * having the proper name (starting with "vss", "gnd", or "ground").
102
 
         * @return true if this PortProto is of type Ground.
103
 
         */
104
 
        public boolean isGround();
105
 
 
106
 
        /**
107
 
         * method to return the base-level port that this PortProto is created from.
108
 
         * For a PrimitivePort, it simply returns itself.
109
 
         * For an Export, it returns the base port of its sub-port, the port on the NodeInst
110
 
         * from which the Export was created.
111
 
         * @return the base-level port that this PortProto is created from.
112
 
         */
113
 
        public PrimitivePort getBasePort();
114
 
 
115
 
        /**
116
 
         * Method to return true if the specified ArcProto can connect to this PortProto.
117
 
         * @param arc the ArcProto to test for connectivity.
118
 
         * @return true if this PortProto can connect to the ArcProto, false if it can't.
119
 
         */
120
 
        public boolean connectsTo(ArcProto arc);
 
58
 
 
59
    /**
 
60
     * Method to get the index of this PortProto.
 
61
     * This is a zero-based index of ports on the NodeProto.
 
62
     * @return the index of this PortProto.
 
63
     */
 
64
    public int getPortIndex();
 
65
 
 
66
    /**
 
67
     * Method to return the name key of this PortProto.
 
68
     * @return the Name key of this PortProto.
 
69
     */
 
70
    public Name getNameKey();
 
71
 
 
72
    /**
 
73
     * Method to return the name of this PortProto.
 
74
     * @return the name of this PortProto.
 
75
     */
 
76
    public String getName();
 
77
 
 
78
    /**
 
79
     * Method to return the parent NodeProto of this PortProto.
 
80
     * @return the parent NodeProto of this PortProto.
 
81
     */
 
82
    public NodeProto getParent();
 
83
 
 
84
    /**
 
85
     * Method to return the PortCharacteristic of this PortProto.
 
86
     * @return the PortCharacteristic of this PortProto.
 
87
     */
 
88
    public PortCharacteristic getCharacteristic();
 
89
 
 
90
    /**
 
91
     * Method to determine whether this PortProto is of type Power.
 
92
     * This is determined by either having the proper Characteristic, or by
 
93
     * having the proper name (starting with "vdd", "vcc", "pwr", or "power").
 
94
     * @return true if this PortProto is of type Power.
 
95
     */
 
96
    public boolean isPower();
 
97
 
 
98
    /**
 
99
     * Method to determine whether this PortProto is of type Ground.
 
100
     * This is determined by either having the proper PortCharacteristic, or by
 
101
     * having the proper name (starting with "vss", "gnd", or "ground").
 
102
     * @return true if this PortProto is of type Ground.
 
103
     */
 
104
    public boolean isGround();
 
105
 
 
106
    /**
 
107
     * method to return the base-level port that this PortProto is created from.
 
108
     * For a PrimitivePort, it simply returns itself.
 
109
     * For an Export, it returns the base port of its sub-port, the port on the NodeInst
 
110
     * from which the Export was created.
 
111
     * @return the base-level port that this PortProto is created from.
 
112
     */
 
113
    public PrimitivePort getBasePort();
 
114
 
 
115
    /**
 
116
     * Method to return true if the specified ArcProto can connect to this PortProto.
 
117
     * @param arc the ArcProto to test for connectivity.
 
118
     * @return true if this PortProto can connect to the ArcProto, false if it can't.
 
119
     */
 
120
    public boolean connectsTo(ArcProto arc);
121
121
}