public class SchedulableMethod extends Object implements Serializable
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Based on software from the IDVV project, which is Copyright (c) 2013 Rijkswaterstaat - Dienst Water, Verkeer en Leefomgeving and licensed without restrictions to Delft University of Technology, including the right to sub-license sources and derived products to third parties.
$LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $, initial version Nov 6, 2016Modifier and Type | Field and Description |
---|---|
protected Object[] |
args
args are the arguments which are used to invoke the method with.
|
protected String |
method
method is the method which embodies the state change.
|
protected Object |
target
target reflects the target on which a state change is scheduled.
|
Constructor and Description |
---|
SchedulableMethod(Object target,
String method,
Object[] args)
The constructor of the schedulable method stores the object and method to invoke with its arguments.
|
protected Object target
protected String method
protected Object[] args
public SchedulableMethod(Object target, String method, Object[] args)
target
- reflects the object on which the method must be invoked.method
- reflects the method to invokeargs
- reflects the argumenst the method to invoke withpublic final void execute()
public final Object[] getArgs()
public final String getMethod()
public final Object getTarget()
Copyright © 2014–2018 Delft University of Technology. All rights reserved.