diff --git a/source/Model/Group.ts b/source/Model/Group.ts index 39a7e0c..2dacd11 100644 --- a/source/Model/Group.ts +++ b/source/Model/Group.ts @@ -1,11 +1,12 @@ import { Individual } from "./Individual"; +import { LabelObject } from "./Label"; import type { Behavior } from "./Behavior"; import type { Model } from "./Model"; /** * 群体类型 */ -class Group { +class Group extends LabelObject { /** * 所有个体 diff --git a/source/Model/Label.ts b/source/Model/Label.ts index 79fac66..693d72a 100644 --- a/source/Model/Label.ts +++ b/source/Model/Label.ts @@ -79,4 +79,6 @@ class LabelObject { }); return has; } -} \ No newline at end of file +} + +export { Label, LabelObject }; \ No newline at end of file