blob: 36ea160b679814fa63a2cdf66229c1935efe6626 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2005, 2006, 2007 Los Alamos National Security, LLC.
* This material was produced under U.S. Government contract DE-AC52-06NA25396
* for Los Alamos National Laboratory (LANL), which is operated by the Los Alamos
* National Security, LLC (LANS) for the U.S. Department of Energy. The U.S. Government has
* rights to use, reproduce, and distribute this software. NEITHER THE
* GOVERNMENT NOR LANS MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR
* ASSUMES ANY LIABILITY FOR THE USE OF THIS SOFTWARE. If software is modified
* to produce derivative works, such modified software should be clearly marked,
* so as not to confuse it with the version available from LANL.
*
* Additionally, 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.ptp.internal.core.events;
import java.util.Collection;
import org.eclipse.ptp.core.IModelManager;
import org.eclipse.ptp.core.attributes.IAttribute;
import org.eclipse.ptp.core.elements.IResourceManager;
import org.eclipse.ptp.core.events.IModelManagerChangedResourceManagerEvent;
/**
* @author rsqrd
*
*/
public class ModelManagerChangedResourceManagerEvent implements IModelManagerChangedResourceManagerEvent {
private final IModelManager mm;
private final IResourceManager rm;
private final Collection<? extends IAttribute<?, ?, ?>> attributes;
public ModelManagerChangedResourceManagerEvent(IModelManager mm, IResourceManager rm,
Collection<? extends IAttribute<?,?,?>> attrs) {
this.mm = mm;
this.rm = rm;
this.attributes = attrs;
}
/* (non-Javadoc)
* @see org.eclipse.ptp.core.events.IModelManagerChangedResourceManagerEvent#getAttributes()
*/
public Collection<? extends IAttribute<?, ?, ?>> getAttributes() {
return attributes;
}
/* (non-Javadoc)
* @see org.eclipse.ptp.rmsystem.events.IResourceManagerNewMachineEvent#getMachine()
*/
public IResourceManager getResourceManager() {
return rm;
}
/* (non-Javadoc)
* @see org.eclipse.ptp.rmsystem.events.IResourceManagerNewMachineEvent#getSource()
*/
public IModelManager getSource() {
return mm;
}
}