HTTP Interface

This commit is contained in:
Daniel Kluge
2023-10-23 16:18:20 +02:00
parent 0fd7b81526
commit 778202e61a
3 changed files with 178 additions and 31 deletions
-20
View File
@@ -19,24 +19,4 @@ export default abstract class AASInterfaceServer<ConfigInterface> {
public abstract stop(): void;
public abstract notify(event: any): void;
protected abstract findElementByRequest(request: Request): any | null;
protected findElementBySemanticId(id: string): types.Class | null {
for (const element of this.aas.descend()) {
if ((element as any).semanticId === id) {
return element;
}
}
return null;
}
protected findElementByShortId(id: string): types.Class | null {
for (const element of this.aas.descend()) {
if ((element as any).idShort === id) {
return element;
}
}
return null;
}
}