org.eclipse.dawnsci.nexus.builder.data.PrimaryDataDevice Maven / Gradle / Ivy
/*-
*******************************************************************************
* Copyright (c) 2011, 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
*
* Contributors:
* Matthew Gerring - initial API and implementation and/or initial documentation
*******************************************************************************/
package org.eclipse.dawnsci.nexus.builder.data;
import org.eclipse.dawnsci.nexus.NXdata;
import org.eclipse.dawnsci.nexus.NXobject;
/**
* Represents the primary data device to add to an {@link NexusDataBuilder} in order to
* build an {@link NXdata} group. This primary device is the one that contains the
* @signal
field.
*
* @param the sub-interface of {@link NXobject} that the nexus object was created from
*
* @author Matthew Dickie
*/
public interface PrimaryDataDevice extends DataDevice {
public String getSignalFieldSourceName();
/**
* Overrides the {@link DataDevice#isPrimary()} to return true
always, as this
* is a primary device.
*
* @see org.eclipse.dawnsci.nexus.builder.data.DataDevice#isPrimary()
* @return true
, always
*/
public default boolean isPrimary() {
// returns true always, do not
return true;
};
}