Public Member Functions | Static Public Attributes | Static Private Attributes | List of all members
wirecell.util.wires.db.Conductor Class Reference
Inheritance diagram for wirecell.util.wires.db.Conductor:
Base

Public Member Functions

def add_wire (self, wire, segment)
 
def __repr__ (self)
 
- Public Member Functions inherited from Base
virtual std::string who () const
 
virtual ~Base () noexcept=default
 

Static Public Attributes

 id = Column(Integer, primary_key=True)
 
 boards
 
 board_links
 
 wires
 
 wire_links
 
 channel_id = Column(Integer, ForeignKey('channels.id'))
 
 channel = relationship('Channel', back_populates='conductor')
 

Static Private Attributes

string __tablename__ = "conductors"
 

Detailed Description

A conductor is a length of wire segments connecting to a board at
a given position indicated by plane and spot .

Definition at line 388 of file db.py.

Member Function Documentation

def wirecell.util.wires.db.Conductor.__repr__ (   self)

Definition at line 416 of file db.py.

416  def __repr__(self):
417  return "<Conductor: %s>" % self.id
418 
419 
def wirecell.util.wires.db.Conductor.add_wire (   self,
  wire,
  segment 
)
Add a wire to this conductor as the given segment.

Definition at line 410 of file db.py.

410  def add_wire(self, wire, segment):
411  '''
412  Add a wire to this conductor as the given segment.
413  '''
414  return ConductorWireLink(conductor=self, wire=wire, segment=segment);
415 
def add_wire(self, wire, segment)
Definition: db.py:410

Member Data Documentation

string wirecell.util.wires.db.Conductor.__tablename__ = "conductors"
staticprivate

Definition at line 393 of file db.py.

wirecell.util.wires.db.Conductor.board_links
static
Initial value:
1 = relationship("BoardConductorLink",
2  back_populates = "conductor")

Definition at line 398 of file db.py.

wirecell.util.wires.db.Conductor.boards
static
Initial value:
1 = relationship("Board",
2  secondary = "board_conductor_links")

Definition at line 396 of file db.py.

wirecell.util.wires.db.Conductor.channel = relationship('Channel', back_populates='conductor')
static

Definition at line 408 of file db.py.

wirecell.util.wires.db.Conductor.channel_id = Column(Integer, ForeignKey('channels.id'))
static

Definition at line 407 of file db.py.

wirecell.util.wires.db.Conductor.id = Column(Integer, primary_key=True)
static

Definition at line 394 of file db.py.

wirecell.util.wires.db.Conductor.wire_links
static
Initial value:
1 = relationship("ConductorWireLink",
2  order_by = 'ConductorWireLink.segment',
3  back_populates = "conductor")

Definition at line 403 of file db.py.

wirecell.util.wires.db.Conductor.wires
static
Initial value:
1 = relationship("Wire",
2  secondary = "conductor_wire_links")

Definition at line 401 of file db.py.


The documentation for this class was generated from the following file: