public class ResumeVM extends Action implements VMStateTransition, RunningVMPlacement
Action.Hook
Constructor and Description |
---|
ResumeVM(VM v,
Node from,
Node to,
int start,
int end)
Make a new resume action.
|
Modifier and Type | Method and Description |
---|---|
boolean |
applyAction(Model m)
Apply only the scheduled action.
|
boolean |
equals(Object o) |
VMState |
getCurrentState()
Get the current state of the VM.
|
Node |
getDestinationNode()
Get the destination node for the VM.
|
VMState |
getNextState()
Get the next state of the VM.
|
Node |
getSourceNode()
Get the source node that is currently hosting the VM.
|
VM |
getVM()
Get the VM to involved in the action.
|
int |
hashCode() |
String |
pretty()
Pretty print of the action.
|
Object |
visit(ActionVisitor v)
Notify a visitor to visit the action.
|
addEvent, apply, applyEvents, getEnd, getEvents, getStart, toString
public VM getVM()
VMEvent
public Node getDestinationNode()
RunningVMPlacement
getDestinationNode
in interface RunningVMPlacement
public Node getSourceNode()
public boolean applyAction(Model m)
Action
applyAction
in class Action
m
- the model to modifytrue
if the action was applied successfullypublic VMState getCurrentState()
VMStateTransition
getCurrentState
in interface VMStateTransition
public VMState getNextState()
VMStateTransition
getNextState
in interface VMStateTransition
public Object visit(ActionVisitor v)
Event
Copyright © 2015 University of Nice-Sophia Antipolis. All Rights Reserved.