public SimCorpMobile(IOutput output) { Output = output; vModelName = "SimCorp Mobile"; vBattery = new LiIonBattery(3000, 1500); vSpeaker = new StereoSpeakerSystem(new RealSpeaker(2), new RealSpeaker(2), 40, this.Output); vSpeakerName = nameof(StereoSpeakerSystem); vKeyBoard = new TouchScreenKeyboard(); vMicrophone = new MobileMicrophone(); vSimCard = new DualSimCardSlot(SimCardTypes.MicroSimCard, SimCardTypes.NanoSimCard); vScreen = new OLEDScreen(1280, 720, 280); vMainCamera = new VideoCamera("Main", 13, true, true); vFrontalCamera = new VideoCamera("Frontal", 5, true, true); vCallStor = new CallStorage(); Contact contact1 = new Contact("Taras", new List <string> { "0633333333", "0966666666" }); Contact contact2 = new Contact("Jeeves", "0674612131"); Contact contact3 = new Contact("Wooster", "0503322189"); vContactStor = new ContactStorage(new List <Contact> { contact1, contact2, contact3 }); CallGen = new CallGenerator(vContactStor); CallGen.CallReceived += OnCallReceived; }
public CallViewer(Mobile mobile, CallGenerator callGenerator) { InitializeComponent(); Mobile = mobile; CallGenerator = callGenerator; MaximizeBox = false; InitializeEvents(); }
public FunctionBodyGenerator( ILabelFactory labelFactory, ReadWriteGenerator readWriteGenerator, PrologueEpilogueGenerator prologueEpilogueGenerator, CallGenerator callGenerator) { this.labelFactory = labelFactory; this.readWriteGenerator = readWriteGenerator; this.prologueEpilogueGenerator = prologueEpilogueGenerator; this.callGenerator = callGenerator; }
public PrologueEpilogueGenerator( ILabelFactory labelFactory, CallGenerator callGenerator, ReadWriteGenerator readWriteGenerator) { this.labelFactory = labelFactory; this.readWriteGenerator = readWriteGenerator; this.callGenerator = callGenerator; // RBP is handled separately, since it has a set place on the stack frame this.calleeSavedMapping = HardwareRegisterUtils.CalleeSavedRegisters .Where(reg => reg != HardwareRegister.RBP) .ToDictionary(register => register, register => new VirtualRegister()); }
public GenerateProcess( ILabelFactory labelFactory, ReadWriteGenerator readWriteGenerator, PrologueEpilogueGenerator prologueEpilogueGenerator, CallGenerator callGenerator, Function.Function function) { this.labelFactory = labelFactory; this.readWriteGenerator = readWriteGenerator; this.prologueEpilogueGenerator = prologueEpilogueGenerator; this.callGenerator = callGenerator; this.function = function; }
private async void startButton_Click(object sender, EventArgs e) { int numberOfCalls = 200; callSingleList.Clear(); callGroupList.Clear(); CallGenerator callGenerator = new CallGenerator(); callGenerator.CallGenerated += OnCallGenerated; await callGenerator.GenerateCalls(numberOfCalls); ShowCalls(); if (groupViewRadioButton.Checked) { ShowInstructionMessageForGroupView(); } }