package nl.tudelft.simulation.dsol.process; import java.io.Serializable; import nl.tudelft.simulation.dsol.interpreter.process.InterpretableProcess; /** * The specifies *
* copyright (c) 2004-2019 Delft University of Technology , the Netherlands.
*
* See for project information www.simulation.tudelft.nl/dsol
* License of use: General Public License (GPL) , no warranty
* @author Peter Jacobs
* @since 1.5
*/
class Dog extends InterpretableProcess
{
/**
* constructs a new Cow.
*/
public Dog()
{
super();
}
/**
*/
public void bark()
{
System.out.println("bark");
this.suspendProcess();
}
/**
* executes the process
*/
public void process()
{
this.bark();
}
/** {@inheritDoc} */
@Override
public Serializable getSourceId()
{
return "Dog";
}
}