/*-
 * Copyright 2016 Diamond Light Source Ltd.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 */

package org.eclipse.dawnsci.analysis.dataset.slicer;

public class SliceFromLiveSeriesMetadata extends SliceFromSeriesMetadata {

	private int port;
	private String host;
	private String[] axesNames;
	
	public SliceFromLiveSeriesMetadata(SourceInformation source, SliceInformation slice, String host, int port, String[] axesNames) {
		super(source, slice);
		
		this.port = port;
		this.host = host;
		this.axesNames = axesNames;

	}

	public String[] getAxesNames() {
		return axesNames;
	}

	public int getPort() {
		return port;
	}

	public String getHost() {
		return host;
	}
	
	@Override
	public SliceFromLiveSeriesMetadata clone() {
		SourceInformation soi = this.getSourceInfo() != null ? this.getSourceInfo().clone() : null;
		SliceInformation sli = this.getSliceInfo() != null ? this.getSliceInfo().clone() : null;
		
		return new SliceFromLiveSeriesMetadata(soi, sli, host, port,axesNames);
	}
}

@@ -496,16 +496,50 @@
 Names;%0A%09
+private String xAxisForRemapping;%0A
 %0A%09public
@@ -658,16 +658,42 @@
 xesNames
+, String xAxisForRemapping
 ) %7B%0A%09%09su
@@ -784,16 +784,62 @@
 esNames;
+%0A%09%09this.xAxisForRemapping = xAxisForRemapping;
 %0A%0A%09%7D%0A%0A%09p
@@ -984,16 +984,89 @@
 t;%0A%09%7D%0A%09%0A
+%09public String getxAxisForRemapping() %7B%0A%09%09return xAxisForRemapping;%0A%09%7D%0A%09%0A
 %09@Overri
@@ -1373,16 +1373,35 @@
 xesNames
+, xAxisForRemapping
 );%0A%09%7D%0A%7D%0A

Add remapped axes name