package org.lucci.madhoc.simulation.projection;

import org.lucci.madhoc.network.Station;

/*
 * Created on May 3, 2005
 */

/**
 * @author luc.hogie
 */
public class OnlyConnectedDeviceProjection extends Projection
{
    /* (non-Javadoc)
     * @see org.lucci.madhoc.simulation.DeviceRelevancy#deviceIsRelevant(null)
     */
    public boolean acceptComputer(Station computer)
    {
        return !computer.getNetworkingUnit().getConnections().isEmpty();
    }

    /* (non-Javadoc)
     * @see org.lucci.madhoc.util.Configurable#configure(org.lucci.madhoc.simulation.Simulation)
     */
    public void configure() throws Throwable
    {
    }

    /* (non-Javadoc)
     * @see org.lucci.madhoc.simulation.projection.Projection#getName()
     */
    public String getName()
    {
        return "connected computers";
    }
}