vault backup: 2025-07-24 16:44:33
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
---
|
||||
id:
|
||||
aliases: []
|
||||
tags:
|
||||
- automation
|
||||
- software
|
||||
---
|
||||
# Assembly Objects
|
||||
|
||||
```cs
|
||||
public class GangableReceptacle : IGangableDevice
|
||||
...
|
||||
|
||||
public class GangableSwitch : IGangableDevice
|
||||
...
|
||||
|
||||
public class OutletBox
|
||||
{
|
||||
public List<IUtilizationEquipment> Contents;
|
||||
|
||||
public void Add(IUtilizationEquipment)
|
||||
{
|
||||
// Add to contents or throw if incompatible
|
||||
}
|
||||
|
||||
public List<Item> Resolve()
|
||||
{
|
||||
// Check content types and resolve by specifications
|
||||
// or raise error if not possible
|
||||
// (e.g. incompatible devices)
|
||||
}
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user