为做到这一点,需创建一个对象(或代理)来代表设备。
To do this, an object (or surrogate) is created to act on behalf of the device.
add_edges方法根据一系列的点创建一个edge对象数组。
The add_edges method creates an array of edge objects from a sequence of points.
这样,我们就有一个单一的联系点用来修改我们所创建对象的核心行为。
Thus, we have a single point of contact for modifying the core behaviour of the Objects we create.
应用推荐