43 lines
750 B
Go
43 lines
750 B
Go
|
package face
|
||
|
|
||
|
/////////////////////////////////////////////////////////////
|
||
|
|
||
|
//所有模型设备的接口定义,为了解决设备间相互依赖时循环依赖问题
|
||
|
|
||
|
type DeviceModeller interface {
|
||
|
//判断是否同一个模型
|
||
|
IsSame(other *DeviceModel) bool
|
||
|
//模型图形id
|
||
|
GetGraphicId() string
|
||
|
//模型索引
|
||
|
GetIndex() string
|
||
|
}
|
||
|
|
||
|
type AxlePointDeviceModeller interface {
|
||
|
DeviceModeller
|
||
|
}
|
||
|
|
||
|
type SignalDeviceModeller interface {
|
||
|
DeviceModeller
|
||
|
}
|
||
|
|
||
|
type SwitchDeviceModeller interface {
|
||
|
DeviceModeller
|
||
|
}
|
||
|
|
||
|
type AxleSectionModeller interface {
|
||
|
DeviceModeller
|
||
|
}
|
||
|
|
||
|
type LinkSectionModeller interface {
|
||
|
DeviceModeller
|
||
|
}
|
||
|
|
||
|
type LogicalSectionModeller interface {
|
||
|
DeviceModeller
|
||
|
}
|
||
|
|
||
|
type PhysicalSectionModeller interface {
|
||
|
DeviceModeller
|
||
|
}
|