68 std::vector<Device> _devices;
75 std::wstring _getVisState()
const;
95 void draw(AcGePoint3d origin,
int terminalNumber,
bool flip,
const wchar_t *junctionTag,
int tableNumber)
const;
IOType
Enumerates the input/output types supported by cables.
Definition Cable.h:50
@ DIGITAL
Digital signals (e.g., on/off).
Definition Cable.h:52
@ ANALOG
Analog signals (e.g., varying voltage).
Definition Cable.h:51
SystemType
Enumerates the types of systems that can use cables.
Definition Cable.h:41
@ SAFETY
Cables used in safety-critical systems.
Definition Cable.h:43
@ CONTROL
Cables used in control systems.
Definition Cable.h:42
CableType
Enumerates the different types of cables.
Definition Cable.h:29
@ WIRE7
A seven-wire cable configuration.
Definition Cable.h:34
@ PAIR2
A cable with 2 pairs configuration.
Definition Cable.h:31
@ TRIAD1
A cable with a triad configuration.
Definition Cable.h:33
@ PAIR4
A cable with 4 pairs configuration.
Definition Cable.h:32
@ PAIR1
A cable with 1 pair configuration.
Definition Cable.h:30
Interface for the Device class.
IOType getIOType() const
Get the input/output type of this cable.
Definition Cable.cpp:144
bool operator<(const Cable &rhs) const
Compare this cable with another based on the following criteria:
Definition Cable.cpp:187
std::vector< Device > getDevices() const
Get all devices connected to this cable.
Definition Cable.cpp:148
SystemType getSystemType() const
Get the system type associated with this cable.
Definition Cable.cpp:140
void draw(AcGePoint3d origin, int terminalNumber, bool flip, const wchar_t *junctionTag, int tableNumber) const
Draw the cable starting from a given origin.
Definition Cable.cpp:52
static IOType getIOTypeFromCell(const std::string &cell)
Determine the IOType from a given cell string identifier.
Definition Cable.cpp:176
Device operator[](int index) const
Access a device by index from the list of connected devices.
Definition Cable.cpp:182
Cable(CableType cableType, SystemType sysType, IOType ioType)
Construct a Cable object with specified types.
Definition Cable.cpp:21
static CableType getWireTypeFromCell(const std::string &cell)
Determine the CableType from a given cell string identifier.
Definition Cable.cpp:161
int getTerminalFootprint() const
Calculate and return the terminal footprint count.
Definition Cable.cpp:153
void addDevice(Device device)
Add a device to the cable's list of connected devices.
Definition Cable.cpp:132
CableType getCableType() const
Get the type of this cable.
Definition Cable.cpp:136
static SystemType getSystemTypeFromCell(const std::string &cell)
Determine the SystemType from a given cell string identifier.
Definition Cable.cpp:170
Represents a device within the Junction Diagram Automation Suite.
Definition Device.h:32
Interface for helper functions related to database operations.