Package org.astrogrid.samp.client
Class ClientTracker.ClientOperation
- java.lang.Object
-
- org.astrogrid.samp.client.ClientTracker.ClientOperation
-
- Enclosing class:
- ClientTracker
private abstract static class ClientTracker.ClientOperation extends java.lang.ObjectDescribes an operation to be performed on a TrackedClient object which is already part of this tracker's model.
-
-
Constructor Summary
Constructors Constructor Description ClientOperation(java.lang.String id, java.lang.String mtype)Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description longgetBirthday()Returns the creation time of this object.java.lang.StringgetId()Returns the client ID for the client this operation applies to.java.lang.StringgetMType()Returns the MType of the message which triggered this operation.abstract voidperform(ClientTracker.TrackedClient client)Performs the instance-specific operation on a given client.java.lang.StringtoString()
-
-
-
Method Detail
-
perform
public abstract void perform(ClientTracker.TrackedClient client)
Performs the instance-specific operation on a given client.- Parameters:
client- client
-
getId
public java.lang.String getId()
Returns the client ID for the client this operation applies to.- Returns:
- client public ID
-
getMType
public java.lang.String getMType()
Returns the MType of the message which triggered this operation.- Returns:
- message MType
-
getBirthday
public long getBirthday()
Returns the creation time of this object.- Returns:
System.currentTimeMillis()at construction
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-