/** * Create a CoordinateOperationSequence from an identifier an array of * {@linkplain org.cts.op.CoordinateOperation CoordinateOperations} and a * precision. * * @param identifier this operation sequence identifier * @param sequence a list containing ordered operations to apply to * coordinates * @param precision precision of this CoordinateOperation as a whole. */ public CoordinateOperationSequence(Identifier identifier, CoordinateOperation[] sequence, double precision) { super(identifier); this.sequence = sequence; this.sequence = cleanSequence(sequence); this.precision = precision; }
/** * Creates a CoordinateOperationSequence from an identifier, a List of * {@linkplain org.cts.op.CoordinateOperation CoordinateOperations} and a * precision. * * @param identifier this operation sequence identifier * @param list a list containing ordered operations to apply to coordinates * @param precision precision of this CoordinateOperation as a whole. */ public CoordinateOperationSequence(Identifier identifier, List<CoordinateOperation> list, double precision) { super(identifier); this.sequence = list.toArray(new CoordinateOperation[list.size()]); this.sequence = cleanSequence(sequence); this.precision = precision; }
/** * Create a CoordinateOperationSequence from an identifier and a List of * {@linkplain org.cts.op.CoordinateOperation CoordinateOperations}. Precision * of this sequence is considered as the sum of all single * {@link org.cts.op.CoordinateOperation}. * * @param identifier this operation sequence identifier * @param list a list containing ordered operations to apply to coordinates */ public CoordinateOperationSequence(Identifier identifier, List<CoordinateOperation> list) { super(identifier); this.sequence = list.toArray(new CoordinateOperation[list.size()]); this.sequence = cleanSequence(sequence); for (CoordinateOperation op : sequence) { precision += op.getPrecision(); } }
/** * Create a CoordinateOperationSequence from an identifier and an array of * {@linkplain org.cts.op.CoordinateOperation CoordinateOperations}. Precision * of this sequence is considered as the sum of all single * {@link org.cts.op.CoordinateOperation}. * * @param identifier this operation sequence identifier * @param sequence an array containing ordered operations to apply to * coordinates */ public CoordinateOperationSequence(Identifier identifier, CoordinateOperation... sequence) { super(identifier); this.sequence = sequence; this.sequence = cleanSequence(sequence); for (CoordinateOperation op : sequence) { precision += op.getPrecision(); } }