6 * @author Lukas Pokorny (lukas_pokorny@centrum.cz)
7 * @author CTU FEE Prague - Department of Control Engineering (dce.felk.cvut.cz)
8 * @author Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
9 * @author dedication to Kj
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
24 package org.ocera.orte.types;
27 public class RecvStatus
29 // nemam to pridat k ostat konstantam????????
30 public static final int NEED_DATA = 0x01;
31 public static final int DEADLINE = 0x02;
36 public RecvStatus(int a)
39 System.out.println(":j: instance of RecvStatus created..");
43 public String toString()
49 public RecvStatus get()
55 public void set(int v)
62 public boolean needData()
64 if (this.value == NEED_DATA) return true;
68 public boolean deadline()
70 if (this.value == DEADLINE) return true;