/*-
 * 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;
	
	public SliceFromLiveSeriesMetadata(SourceInformation source, SliceInformation slice, String host, int port) {
		super(source, slice);
		
		this.port = port;
		this.host = host;

	}

	public int getPort() {
		return port;
	}

	public String getHost() {
		return host;
	}
}

@@ -466,16 +466,45 @@
 g host;%0A
+%09private String%5B%5D axesNames;%0A
 %09%0A%09publi
@@ -604,16 +604,36 @@
 int port
+, String%5B%5D axesNames
 ) %7B%0A%09%09su
@@ -699,96 +699,508 @@
 st;%0A
-%0A%09%7D%0A%0A%09public int getPort() %7B%0A%09%09return port;%0A%09%7D%0A%0A%09public String getHost() %7B%0A%09%09return host
+%09%09this.axesNames = axesNames;%0A%0A%09%7D%0A%0A%09public String%5B%5D getAxesNames() %7B%0A%09%09return axesNames;%0A%09%7D%0A%0A%09public int getPort() %7B%0A%09%09return port;%0A%09%7D%0A%0A%09public String getHost() %7B%0A%09%09return host;%0A%09%7D%0A%09%0A%09@Override%0A%09public SliceFromLiveSeriesMetadata clone() %7B%0A%09%09SourceInformation soi = this.getSourceInfo() != null ? this.getSourceInfo().clone() : null;%0A%09%09SliceInformation sli = this.getSliceInfo() != null ? this.getSliceInfo().clone() : null;%0A%09%09%0A%09%09return new SliceFromLiveSeriesMetadata(soi, sli, host, port,axesNames)
 ;%0A%09%7D

update to live metadata to get axes correctly