blob: dfd3e2fb96c2997a9ea8ee8cb90c931da5802e3e (
plain) (
tree)
|
|
/*******************************************************************************
* Copyright (c) 2004, 2007 Boeing.
* 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:
* Boeing - initial API and implementation
*******************************************************************************/
package org.eclipse.osee.ats.client.demo;
import java.util.ArrayList;
import java.util.Collection;
/**
* @author Donald G. Dunne
*/
public enum DemoSubsystems {
Robot_API,
Robot_Survivability_Equipment,
Robot_Systems_Management,
Chassis,
Cognitive_Decision_Aiding,
Communications,
Data_Management,
Electrical,
Controls,
Hydraulics,
Navigation,
Propulsion,
Unknown,
Unspecified;
public static String[] getSubsystemArray() {
return getSubsystems().toArray(new String[getSubsystems().size()]);
}
public static Collection<String> getSubsystems() {
ArrayList<String> subsystems = new ArrayList<String>();
for (DemoSubsystems subsystem : DemoSubsystems.values()) {
subsystems.add(subsystem.name());
}
return subsystems;
}
}
|