<?php

include_once(dirname(__FILE__).'/../../Base/Controller.php');
include_once(dirname(__FILE__).'/../../Application/View/Page.php');
include_once(dirname(__FILE__).'/View.php');

class EmulatorController extends Controller
{
  function ItemList()
  {
    $Page = new PageView($this->System);
    $View = new EmulatorView($this->System);
    return($Page->GetOutput($View->ItemList()));
  }    

  function Show()
  {
    $Page = new PageView($this->System);
    $View = new EmulatorView($this->System);
    return($Page->GetOutput($View->Item()));
  }    

  function Compile()
  {
    $Page = new PageView($this->System);
    $View = new EmulatorView($this->System);
    return($Page->GetOutput($View->Compile()));
  }    

  function Download()
  {
    $Page = new PageView($this->System);
    $View = new EmulatorView($this->System);
    return($Page->GetOutput($View->Download()));
  }    

  function Add()
  {
    $Page = new PageView($this->System);
    $View = new EmulatorView($this->System);
    return($Page->GetOutput($View->Add()));
  }    

  function AddFinish()
  {
    $Page = new PageView($this->System);
    $View = new EmulatorView($this->System);
    return($Page->GetOutput($View->AddFinish()));
  }    
}
