The Robot Application Programming Interface Delegate Project
|
/* * Copyright (c) 2009 United States Government as represented by the * Administrator of the National Aeronautics and Space Administration. * All Rights Reserved. */ package gov.nasa.rapid.examples.event; import java.util.EventObject; public class ExampleEvent extends EventObject { private String message; public ExampleEvent(Object arg0) { super(arg0); if (arg0 instanceof MessageSent) message = ((MessageSent) arg0).getMessage(); } public String doSomethingToString() { return message + "::" + String.valueOf(System.currentTimeMillis()); } }