sclass G22NetworkCable { settable G22NetworkElement.Port from; settable G22NetworkElement.Port to; // was this made by magnetic connection? settable bool isAutomatic; void connect { from.cable(this); to.cable(this); } void remove { from?.cable(null); to?.cable(null); } toString { ret renderVars("G22NetworkCable", +from, +to, +isAutomatic); } }