isoxml-angular
Version:
JavaScript library to parse and generate ISOXML (ISO11783-10) files
64 lines (63 loc) • 2.36 kB
TypeScript
import { ISOXMLManager } from "../ISOXMLManager";
import { XMLElement } from "../types";
import { TAGS } from "./constants";
import { CommentAllocation } from "./CommentAllocation";
import { Connection } from "./Connection";
import { ControlAssignment } from "./ControlAssignment";
import { DataLogTrigger } from "./DataLogTrigger";
import { DeviceAllocation } from "./DeviceAllocation";
import { Grid } from "./Grid";
import { GuidanceAllocation } from "./GuidanceAllocation";
import { OperTechPractice } from "./OperTechPractice";
import { ProductAllocation } from "./ProductAllocation";
import { Time } from "./Time";
import { TimeLog } from "./TimeLog";
import { TreatmentZone } from "./TreatmentZone";
import { WorkerAllocation } from "./WorkerAllocation";
import { Entity, EntityConstructor, ISOXMLReference } from "../types";
export declare const enum TaskTaskStatusEnum {
Planned = "1",
Running = "2",
Paused = "3",
Completed = "4",
Template = "5",
Canceled = "6"
}
export type TaskAttributes = {
TaskDesignator?: string;
CustomerIdRef?: ISOXMLReference;
FarmIdRef?: ISOXMLReference;
PartfieldIdRef?: ISOXMLReference;
ResponsibleWorkerIdRef?: ISOXMLReference;
TaskStatus: TaskTaskStatusEnum;
DefaultTreatmentZoneCode?: number;
PositionLostTreatmentZoneCode?: number;
OutOfFieldTreatmentZoneCode?: number;
TreatmentZone?: TreatmentZone[];
Time?: Time[];
OperTechPractice?: OperTechPractice[];
WorkerAllocation?: WorkerAllocation[];
DeviceAllocation?: DeviceAllocation[];
Connection?: Connection[];
ProductAllocation?: ProductAllocation[];
DataLogTrigger?: DataLogTrigger[];
CommentAllocation?: CommentAllocation[];
TimeLog?: TimeLog[];
Grid?: Grid[];
ControlAssignment?: ControlAssignment[];
GuidanceAllocation?: GuidanceAllocation[];
ProprietaryAttributes?: {
[name: string]: string;
};
ProprietaryTags?: {
[tag: string]: XMLElement[];
};
};
export declare class Task implements Entity {
attributes: TaskAttributes;
isoxmlManager: ISOXMLManager;
tag: TAGS;
constructor(attributes: TaskAttributes, isoxmlManager: ISOXMLManager);
static fromXML(xml: XMLElement, isoxmlManager: ISOXMLManager, internalId?: string, targetClass?: EntityConstructor): Promise<Entity>;
toXML(): XMLElement;
}