Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add chromatography type to chromatogram #1868

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public abstract class AbstractChromatogram<T extends IPeak> extends AbstractMeas
private int scanDelay = 4500;
private int scanInterval = 1000; // 1000ms = 1 scan per second
private final List<ChromatogramAnalysisSegment> analysisSegments = new ArrayList<>();
private ChromatographyType chromatographyType = null;
/*
* This flag marks whether the chromatogram has been
* set to unload modus. It is used e.g. when loading
Expand Down Expand Up @@ -964,6 +965,12 @@ public void updateAnalysisSegment(IAnalysisSegment segment, IScanRange range) {

}

@Override
public ChromatographyType getChromatographyType() {

return chromatographyType;
}

@Override
public boolean equals(Object otherObject) {

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*******************************************************************************
* Copyright (c) 2024 Lablicate GmbH.
*
* 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:
* Matthias Mailänder - initial API and implementation
*******************************************************************************/
package org.eclipse.chemclipse.model.core;

import org.eclipse.chemclipse.support.text.ILabel;

public enum ChromatographyType implements ILabel {

GC("Gas Chromatography"), //
LC("Liquid Chromatography"), //
TLC("Thin Layer Chromatography"), //
SEC("Size Exclusion Chromatography"), //
IC("Ion Chromatography"), //
CE("Capillary Electrophoresis"), //
AC("Affinity Chromatography"); //

private String label;

private ChromatographyType(String label) {

this.label = label;
}

@Override
public String label() {

return label;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -274,4 +274,6 @@ default void clearAnalysisSegments() {
removeAnalysisSegment(segment);
}
}

ChromatographyType getChromatographyType();
}