package util.propnet.architecture.components;
import util.propnet.architecture.Component;
/**
* The Transition class is designed to represent pass-through gates.
*/
@SuppressWarnings("serial")
public final class Transition extends Component
{
/**
* Returns the value of the input to the transition.
*
* @see util.propnet.architecture.Component#getValue()
*/
@Override
public boolean getValue()
{
return getSingleInput().getValue();
}
/**
* @see util.propnet.architecture.Component#toString()
*/
@Override
public String toString()
{
return toDot("box", "grey", "TRANSITION");
}
}