} // GroupHub public bool InitializeSpace(int space, bool SimStart) { //int AP = space % (GV.numSpacesperAP * GV.numAPsperGroup); //AP = AP / (GV.numSpacesperAP); int AP = GV.FindAPNumberfromSpace(space); return(AccessPoints[AP].InitializeSpace(space, SimStart)); }
// When a car finishes it's job, it will call this function to release the backup // vehicles public void DeleteBackup(int SpaceNumber) { int AP = GV.FindAPNumberfromSpace(SpaceNumber); AccessPoints[AP].DeleteBackup(SpaceNumber); }
} // Receive // This function will assign an existing job to a new vehicle. // At this point in time it is used only for when a vehicle is backing // up a new job to other cars. public void AssignJobtoVehicle(Job job, int DestinationSpace, int WorkingVehicle, int dataSize) { int AP = GV.FindAPNumberfromSpace(DestinationSpace); AccessPoints[AP].AssignJobtoVehicle(job, DestinationSpace, WorkingVehicle, dataSize); }
// Sends a message to the backup machine to notify it that it will be // receiving the VM corresponding to its job. public Boolean NotifyPartnerofTransfer(int SpaceNumber, double DataSize, GV.TransmissionType transType, Job job) { int AP = GV.FindAPNumberfromSpace(SpaceNumber); return(AccessPoints[AP].NotifyPartnerofTransfer(SpaceNumber, DataSize, transType, job)); }