cz.luboss.pensum.server
Class PeServerRMI

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended byjava.rmi.server.UnicastRemoteObject
              extended bycz.luboss.medulla.server.MeServerRMI
                  extended bycz.luboss.pensum.server.PeServerRMI
All Implemented Interfaces:
MedullaRMI, PensumRMI, java.rmi.Remote, java.io.Serializable

public class PeServerRMI
extends MeServerRMI
implements PensumRMI

RMI server pro aplikaci Pensum

See Also:
Serialized Form

Field Summary
 
Fields inherited from class cz.luboss.medulla.server.MeServerRMI
m_arrSess, m_bLogClient
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
PeServerRMI()
          Konstruktor
 
Method Summary
 boolean AddProduct(int nSessionID, PeJob job, PeProduct product)
          Prida vyrobek do jobu
static void main(java.lang.String[] args)
           
 boolean SetStavOper(int nSessionID, PeRunOperation operation, int nStav)
          Nastavi na operaci stav
 boolean SetStavPart(int nSessionID, PeRunPart part, int nStav)
          Nastavi na dilci a jeho operacich stav
 boolean SetStavProduct(int nSessionID, PeRunProduct product, int nStav)
          Nastavi na produktu a jeho dilcich stav
 
Methods inherited from class cz.luboss.medulla.server.MeServerRMI
AddSequenceID, GetActualSessions, IsValidSession, LoadArrayRMI, LoadDataRMI, LoadSession, SaveLog, SaveTrans, sendTest
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface cz.luboss.medulla.factory.MedullaRMI
AddSequenceID, GetActualSessions, IsValidSession, LoadArrayRMI, LoadDataRMI, LoadSession, SaveTrans, sendTest
 

Constructor Detail

PeServerRMI

public PeServerRMI()
            throws java.rmi.RemoteException
Konstruktor

Method Detail

main

public static void main(java.lang.String[] args)

AddProduct

public boolean AddProduct(int nSessionID,
                          PeJob job,
                          PeProduct product)
Prida vyrobek do jobu

Specified by:
AddProduct in interface PensumRMI
Parameters:
nSessionID - Session
job - job, do ktereho je treba dat cely vyrobek
product - vkladany vyrobek
Returns:
prubeh funkce

SetStavProduct

public boolean SetStavProduct(int nSessionID,
                              PeRunProduct product,
                              int nStav)
Nastavi na produktu a jeho dilcich stav

Specified by:
SetStavProduct in interface PensumRMI
Parameters:
nSessionID - Session
product - vyrobek
nStav - stav pro nastaveni
Returns:
prubeh funkce

SetStavPart

public boolean SetStavPart(int nSessionID,
                           PeRunPart part,
                           int nStav)
Nastavi na dilci a jeho operacich stav

Specified by:
SetStavPart in interface PensumRMI
Parameters:
nSessionID - Session
part - dilec
nStav - stav pro nastaveni
Returns:
prubeh funkce

SetStavOper

public boolean SetStavOper(int nSessionID,
                           PeRunOperation operation,
                           int nStav)
Nastavi na operaci stav

Specified by:
SetStavOper in interface PensumRMI
Parameters:
nSessionID - Session
operation - operace
nStav - stav pro nastaveni
Returns:
prubeh funkce