All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.phoebus.applications.alarm.client.AlarmClientNode Maven / Gradle / Ivy

The newest version!
/*******************************************************************************
 * Copyright (c) 2018-2021 Oak Ridge National Laboratory.
 * 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.phoebus.applications.alarm.client;

import java.util.concurrent.CopyOnWriteArrayList;

import org.phoebus.applications.alarm.model.AlarmTreeItemWithState;
import org.phoebus.applications.alarm.model.BasicState;
import org.phoebus.applications.alarm.model.SeverityLevel;

/** Node in the body of the alarm tree, i.e. non-leaf
 *  @author Kay Kasemir
 */
public class AlarmClientNode extends AlarmTreeItemWithState
{
    /** Create alarm tree item (non-leaf)
     *  @param parent_path Parent path, null for root
     *  @param name Name of this item
     */
    public AlarmClientNode(final String parent_path, final String name)
    {
        super(parent_path, name, new CopyOnWriteArrayList<>());
        state = new BasicState(SeverityLevel.OK);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy