HTTP Interface
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user