|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectEvent
Event implments Comparable so that two events can be compared based on the end time. The posting time of an Event can be checked against the valid time of Assemblies involved to see if the event has been made invalid by other events on the Assemblies involed.
| Constructor Summary | |
Event()
Constructs a default Event |
|
Event(double curTime,
double endTime,
java.lang.String[] assemNamesInvolved)
Constructs an Event made at curTime, with the given endTime and names of Assemblies involved |
|
| Method Summary | |
int |
compareTo(java.lang.Object e)
Compares Object e and this Event based on their end time. |
java.lang.String[] |
getAssemNamesInvolved()
Gets the names of all Assemblies involved in this Event |
double |
getEndTime()
Gets the end time of this Event |
double |
getPostTime()
Gets the post time of this Event |
boolean |
isValid(double[] validTimes)
Checks the validity of this Event. |
boolean |
sameAssembly()
Returns true if there is only 1 assembly involved in this Event |
void |
setAssemNamesInvolved(java.lang.String[] assemNamesInvolved)
Sets the names of all Assemblies involved in this Event |
void |
setEndTime(double newEndTime)
Sets the end time of this Event to a new value |
void |
setPostTime(double newPostTime)
Sets the post time of this Event to a new value |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Event()
public Event(double curTime,
double endTime,
java.lang.String[] assemNamesInvolved)
curTime - double, current time when event is foundendTime - double, time when the event will be complete (used for
priority)assemNamesInvolved - String[]| Method Detail |
public double getPostTime()
public void setPostTime(double newPostTime)
newPostTime - double, newPostTime is the new value for post time of this
eventpublic void setEndTime(double newEndTime)
newEndTime - double, newEndTime is the new vlaue for end time of this eventpublic double getEndTime()
public java.lang.String[] getAssemNamesInvolved()
public void setAssemNamesInvolved(java.lang.String[] assemNamesInvolved)
assemNamesInvolved - voidpublic int compareTo(java.lang.Object e)
compareTo in interface java.lang.Comparablee - Object
public boolean isValid(double[] validTimes)
validTimes - Array of validTimes of all assemblies this event involves
public boolean sameAssembly()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||